You can do that with ShellExecute
pepe 0
Posts
-
How to open a file in its designated application? -
disable drag&drop in RichEdithello, can someone tell me how to disable the drag&drop in a RichEdit control ? Do I have to use IRichEditOleCallback and how ? 1MB of thanks in advance
-
CreateDIBSectionIt's just because I make memory access and they seem to be slow. Never mind, I'll do more tests. Thanks.
-
CreateDIBSectionThe fourth parameter of CreateDIBSection (VOID **ppvBits) gives me values over 0x80000000, is it still system memory ?
-
CreateDIBSectionhello, Is it possible to have CreateDIBSection to allocate the bitmap in system memory rather than in video memory (without DDraw) ?
-
XP backupHello, is there a backup utility included in WinXP home edition that could backup a network drive ? thanks.
-
IGlobalInterfaceTableOops, i forgot to call: CoInitializeEx(0, COINIT_APARTMENTTHREADED); Next time i'll read the docs more deeply.
-
IGlobalInterfaceTableHello, I'm writing a browser helper object (BHO). It seems that I cannot do this :
IGlobalInterfaceTable *g_pGIT = NULL; /* ... */ void CALLBACK TimerProc(UINT uID, UINT uMsg, DWORD dwUser, DWORD dw1, DWORD dw2) { HRESULT hr; IDOMPeek* pIDOMPeek = NULL; hr = g_pGIT->GetInterfaceFromGlobal( dwUser, IID_IDOMPeek, (void**)&pIDOMPeek); /* ... */
I get hr == 0x800401f0 Why and how should i do it ? Does I have to use ITimer, ITimerService, ... But i cannot find samples how to use that. Thanks. -
load file in bufferfile=fopen(m_pathname1,"r"); with a lowercase 'r' "640K ought to be enough for anybody." Bill Gates
-
Memory leakagesThere is also a very basic detection/debugging with _CrtDumpMemoryLeaks() and _CrtSetBreakAlloc() in crtdbg.h "640K ought to be enough for anybody." Bill Gates
-
Is there a fast method for doing this?There are lots of implementation of linked lists, you could try STL containers, they are very fast if they are used in a good way. There must be examples & tutorials here at CodeProject. You could also implement it yourself. Basically it should look like this :
struct myList { long somedata; struct myList *next; };
"640K ought to be enough for anybody." Bill Gates -
Microsoft admit to quick hacksDaniel Turini wrote: So, explain me CoInitialize(NULL) and CoInitializeEx(NULL, APT_MODEL); Why do the hell they didn't use the dwReserved in CoInitialize to set the apt. model ? Why creating a Ex function that has the same dwReserved, plus the apt. model choice ? To be consistent with their inconsistency. "640K ought to be enough for anybody." Bill Gates
-
Keystroke characters to toggle.Alt+Tab
-
Is there a fast method for doing this?If you have many data you could use a linked list structure. If you want to use arrays, use memmove.
-
Keystroke characters to toggle.Ctrl+Tab
-
Annoying Compiler WarningI'm not a guru but I suppose the the compiler interpret (well a compiler does'nt interpret code, but...) : char *str[] = {"one", "two"}; as char *str[2] = {"one", "two"}; I think (not shure) that your code might compile in old C but not in C++ (new behaviour).
-
Annoying Compiler WarningAnd like this ? :
typedef struct { char *(*errors)[]; } ERROR_LIST; char *errors[]; ERROR_LIST err_list={&errors}; char *errors[]={"An error","Another error",};
-
CreateFont & underlineThanks, I'll have to code :(( ps : your .scr is cool !
-
CreateFont & underlineI know how to set the underline attribute, but i want to set the position (relative to the baseline) of the line. If possible ! Thanks anyway.
-
CreateFont & underlineHello, Is there a way to specify the position of the underline of a font ? thanx