|
i cant even use the debugger... obviously that the first thing any developer will do.... the reason is that it is failing in gs_report.c
#if defined (_CRTBLD) && !defined (_SYSCRT)<br />
DebuggerWasPresent = IsDebuggerPresent();<br />
_CRT_DEBUGGER_HOOK(_CRT_DEBUGGER_GSFAILURE);<br />
#endif /* defined (_CRTBLD) && !defined (_SYSCRT) */
and there is no traceable path backwards.
-- modified at 6:06 Wednesday 14th June, 2006
|
|
|
|
|
The display name of the object selected is returned in the buffer pointed to by the pszDisplayName member of the BROWSEINFO parameter structure.
pszDisplayName
Address of a buffer to receive the display name of the folder selected by the user. The size of this buffer is assumed to be MAX_PATH characters.
BROWSEINFOW dir;
WCHAR wcDisplayName[MAX_PATH];
...
dir.pszDisplayName = DisplayName;
...
I've seen better runs in my shorts! - Patches O'Houlihan
|
|
|
|
|
Thanks for the help. it did work.
|
|
|
|
|
Hey, i have a trouble for all. That is: For example: I want to write a function that display a messagebox with many param that i want. It should like this (like sprintf())
ms(HWND hwd,char *control_string,...){
static char *c[1000];
sprintf(c,control_string,???);
MessageBox(hwd,c,"ms",0);
};
Understand, but i don't know what ??? is ?.
If i have this function then i can call this function very useful like this:
ms(0,"%s%i%s",
"Untill now, I posted: ",
10000000000000,
" question!");
Is it useful?
|
|
|
|
|
You have to use va_arg , va_end and va_start macros. Try this:
#include <stdarg.h>
void ms( HWND hwd, const char * control_string, ...)
{
va_list argptr;
va_start(argptr, control_string);
char c[1000];
_vsnprintf(c, 1000, control_string, argptr);
MessageBox(hwd, c, "ms", 0);
va_end(argptr);
};
Hope it helps.
|
|
|
|
|
Try use this lines :
int EnhMessageBox(HWND hWnd, int mbFlags, LPCSTR pCaption, LPCSTR pTextFormat, ...)
{
va_list args;
va_start(args, pTextFormat);
int bufSize;
char pBuffer[MAX_PATH*4] = "\0";
bufSize = vsprintf(pBuffer, pTextFormat, args);
va_end(args);
return MessageBox(hWnd, pBuffer, pCaption, mbFlags);
}
Tantum possumus, quantum scimus.
|
|
|
|
|
what's vsprintf(...). Please tell me! I'm lazy.
Thanks for your help!
|
|
|
|
|
|
hi all
how to get notified when screen resolution changes
acc. to the res. i need to change the ctrl size in my app.
|
|
|
|
|
Maybe WM_DISPLAYCHANGE notification is what you need.
|
|
|
|
|
|
hi,
how to extract properties of msi file using msiexec ?
thanks,
Supriya
|
|
|
|
|
I think you have to write a program using the MSI API and open the MSI files yourself and do all the 'property extraction'.
I've seen better runs in my shorts! - Patches O'Houlihan
|
|
|
|
|
I use orca.exe to get to the heart and soul of the MSI file.
Look for the orca.msi hidden in the windows 2000 resource kit directories. Install it and then you can right click on an MSI to view it's database for reading/writing etc...
-- modified at 18:51 Wednesday 14th June, 2006
Oops. I guess it's in the Platform SDK. My Bad.
|
|
|
|
|
how to leave space at the top and then add tabs in the property sheet
prashant jain
|
|
|
|
|
How i can minimise a Dialog on a button Click.
|
|
|
|
|
ShowWindow(SW_MINIMIZE);
whitesky
|
|
|
|
|
Thaks, but it isnot working in the WenCE.
|
|
|
|
|
Not working?? Did you pass the handle? or did you use this-> pointer? what's error message?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
I had used
if(m_bMinimize)
CMyDlg::ShowWindow(SW_MINIMIZE);
;
;
;
;
;
CMyDlg::ShowWindow(SW_SHOWMAXIMIZED);
This code is written in a button click of my Dialog.
The Dialog is minimised but it does not maximise again.
This is working fine in VC++ but does not working in WinCE
|
|
|
|
|
Hey I'm sorry!! CE doesn't support SW_SHOWMAXIMIZED But I think you can stil do it with ::MoveWindow instead. Move it to the size of the screen coordinates .
And always have this in your hand...
The Golden Sword^
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
yes you can use MoveWindow or SetWindowPos instead this function
whitesky
|
|
|
|
|
ShowWindow(SW_MINIMIZE);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
<br />
#define MENU_HEIGHT 26<br />
RECT rc;<br />
<br />
GetWindowRect(hWnd, &rc);<br />
<br />
SHFullScreen(hWnd, SHFS_HIDETASKBAR | SHFS_HIDESIPBUTTON);<br />
ShowWindow(hwndCB, SW_HIDE);<br />
<br />
MoveWindow(hWnd, <br />
rc.left, <br />
rc.top-MENU_HEIGHT, <br />
rc.right, <br />
rc.bottom+MENU_HEIGHT, <br />
TRUE); <br />
Click Here for more^ Enjoy!
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
|
|
|
|
|
how can we send data from main dialog to child dialog.
in my main dialog i have a world map when we point out particular country then the chil window should open just like tooltips in that we must show the current time of that country.when we point the coutry child window is coming but in that time not coming.
i find that timer is taking windows co-ordinates.
so please help,urgent.
sree.
|
|
|
|