I made a desktop music application in adobe air.
I want to update the status of some IM clients running EG: Yahoo messenger,Gtalk,AIM,MSN etc.
with the current playing song.
I am not desktop developer.This is first time i am making something for desktop.
SO is there any way in any Programming language that i can make something which wi...
How can I load an image from BYTE* array using CImage ?
My workaround until now is to simply create a temporary file, but this operation is very expensive sometimes ...
There are probably libraries for that, but I do not want to link to other libraries, all I need is to get image size and effectively display to screen, and CImage is all...
I'm finishing my summer job where I write graphical software for our baggage scanners. Everything is done in .NET or MFC, with plain C++ for hardware communication (I don't do any of the hardware stuff). I sometimes resorted to Win32 API calls such as SendMessage to improve performance of a form or control. I've had only a year's worth o...
My service program executes another instance of itself with, essentially, CreateProcess(GetCommandLine()). The child process then uses OpenProcess to get a handle to its parent process (so it can detect when the parent has stopped running). For some customers, OpenProcess fails with ERROR_ACCESS_DENIED. I'm trying to determine the reason...
Just by processing the WM_SIZE message, is it possible to know if the window was restored from a minimized state ?
...
Hi, please, is it possible to catch output from concole program? I would like to write GUI to console app, but I need to get its output.
...
I have experienced a strange problem in windows vista and above. When I use the IFileOpenDialog with a large stack, the amount of memory remaining after showing the dialog drops by about a gigabyte.
#include <windows.h>
#include <Shobjidl.h>
#include <iostream>
void memGrab(char *);
int main(int argc, char **argv){
char Message[128];...
My application creates a suspended process, gets process's information via VirtualQueryEx() ,but fails getting process's module information using EnumProcessModules().
The task above is completed ONLY if the process is NOT created suspended and a breakpoint is hit in the debugger(so the program runs, before the call is executed).
I'm t...
I have written an Add-in for Windows Home Server Console that is supposed to copy and replace some files among other things.
The problem is that one file is already used by HomeServerConsole.exe and therefore I cannot replace it with another. I get "Cannot access file because it's being used by another process".
I'm not sure how to sol...
WCHAR* someString = L"SomeString\n";
WCHAR s1[MAX_PATH];
// I'm sure this is right code.
StringCchCopyW(s1, _countof(s1), someString);
// But I'm not sure about these example.
StringCchCopyW(s1 + 100, _countof(s1) - 100, someString); // Is it right?
StringCchCopyW(s1 + 100, _countof(s1), someString); // Is it right?
// How about these...
im using gdi+ to output my images.
i tried to use the keyword new but it didn't work.
shot(L"image name") = new Image;
that didn't work any other ideas how to make it work
...
I'm using RawInput to deal with keystrokes. I'm finding it hard to determine if the shift is pressed together with a key.
From the RawInputStructure -> RawKeyboard, I can retrieve the key being pressed but I'm not sure how to go about things if the keys were pressed at the same time.
RI.Data.keyboard.VKey (gets the keycode)
I'm trying...
im trying to display image when left mouse button is down.
i can display the image but if the left mouse button is down again than the older image would be deleted.
here is my code
display image function
{
Graphics graphics(hdc);
POINT pt;
GetCursorPos(
ScreenToClient(hWnd,
Image shot(L"RegularShots.png");
grap...
There is a nice feature in the "Open Project..." dialog (see image below) in the NetBeans IDE which uses a custom icon for the folder symbols depending on the project type in that folder.
For example, if a folder contains a pom.xml file, the Maven project symbol appears.
Maybe there also an extension point in the Windows standard dial...
Ok so I'm working with vectors today yaya!
well im also working with getcursorpos() and i get weird results.
here is the code:
VOID fRegularShot(HDC hdc, HWND hWnd)
{
Graphics graphics(hdc);
Image shot(L"RegularShots.png");
long index=0;
while(index<=(long)pRegularShots.size())
{
index+=2;
int x=pRegu...
MSDN doc's for MoveWindow() says:
"If the bRepaint parameter is TRUE, the system sends the WM_PAINT message to the window procedure immediately after moving the window (that is, the MoveWindow function calls the UpdateWindow function)."
But when I call GetUpdateRect() after MoveWindow(), while processing the WM_LBUTTONDOWN message in ...
Hi,
It happens only on Windows XP, the Windows API PostMessage will be blocked during maximum or minimum a window of another application. It takes more than 200ms.
I've set priority of my application to High.
There's no problem on Windows Vista or Windows 7.
Any hints how to solve this problem?
Yun
...
Hello,
Is there a way to get a file hardlinks count on Windows without using GetFileInformationByHandle()?
MSDN says:
Depending on the underlying network features of the operating system and the type of server connected to, the GetFileInformationByHandle function may fail, return partial information, or full information for the giv...
Does anybody know of a function to convert the EXCEPTION_POINTERS structure returned from GetExceptionInformation() into a string that I can log?
I don't want to roll my own if it's already been done.
EDIT: Basically, I've added the __try{} __except(){} blocks to help the app fail gracefully on a critical error. While I'm at it, I'm t...
I found a code on net and have been trying to get more information about mo[].
I am trying to get all the information contained in ManagementObjectCollection.
Since parameter in mo is looking for an string value which I dont know, how can I get all the values without knowing its parameter values. Or if I want to get all the indexer val...