|
Hello,
As a matter of fact, I have written this type of application for a company I used to work at.
It's about 5MB, so if you tell me a way to send it to you, I will.
Chris
chris@outreach4him.50megs.com
|
|
|
|
|
Hi,
My app is performance critic and so I wanted to set the optimisations (VC 7.0) in the release verison of my app. Now when I fire up the application I give the user a startup configuration dialog. Before the optimisations it drew the background default grey as I wanted it to. Now the dialog background is white, the control backgrounds are grey though. Anyone else came across this problem?
|
|
|
|
|
its release version i suppose, but did u ASSERT in it, cos if u did ASSERT is nasty!! If u did ill tell u why!
|
|
|
|
|
Is there any way to detect if the user has locked the workstation in WinNT/2k/XP?
Regards,
Venet.
Donec eris felix, multos numerabis amicos.
|
|
|
|
|
For W2K (only), you could look at :-
http://www.codeproject.com/useritems/winlogon_notification_package.asp
For NT, I havnt heard of this being successfully acheived without either :-
a) totally replacing the NT GINA, with one of your own,
b) (or) using a pass-thru GINA, which intercepts the items
you wish to trap, (actions them) and then calls the 'real' GINA.
Both NT methods appear complicated and dangerous !!! - If you wish to know more, Windows Developer Journal (WDJ) had a series of articles written by Pamela (something beginning with "T" [apologies to Pamela], who's an expert in this field, you could pick up the CD-ROM of back-issues if you were really serious about doing it)
Microsoft do supply a GINA example in the SAMPLES directory of the MSDK kits, as well (but the articles mentioned above are the way to go ...)
HTH
'G'
|
|
|
|
|
Thanks,
I think I must have a look at WDJ for those articles.
I did think that it might be just sending a WM_ message to the app, but then again, finding no info in MSDN made it doubtful.
Thanks for the info
Regards,
Venet.
Donec eris felix, multos numerabis amicos.
|
|
|
|
|
You get teh answer you were looking for??????
Regards,
Brian Dela
|
|
|
|
|
Nope I didn't
I was looking through the Microsoft newsgroups and there doesn't seem to be a simple answer to this problem, and I don't have enough time to write the gina.dll.
Thanks Dela
Regards,
Venet.
Donec eris felix, multos numerabis amicos.
|
|
|
|
|
can someone help me out with this c++ problem? here's the question..
User is required to enter a person's address. the address should contain oni numeric, alphabets and '/'. when user press <enter> key, it will passed to a function..lets call it charsok() that will return true if the entered text contains only alphabet,numeric and '/'-it will return false otherwise. it will then passed in to another function lets call it splitter. In here, it'll splits the line of entered text into few components.the components are returned by function splitter. components in the entered string are delimited by a slash, space or tab character. then it'll pass to another function to display the results. pass the component to display, do not make them available by declaring them as global variables. The output should be :
When user key in Duckworth Avenue..
the output will be Street Address = Duckworth Avenue.
another example 14 Melba crescent..output : Street Number = 14 Street Address = Melba Crescent.
and the last possibility is 13/240 William Slim Drive. the output : Unit = 13 Street Number = 240 Street Address = William Slim Drive
Please Help.. need it asap.. mail me at angieng@malaysia.st
Please please please..
|
|
|
|
|
it should be easy enough to do using cstring::spanincluding() and cstring::spanexcluding() and/or the crt functions isdigit() and isalpha()
my only concern is that the input looks a bit informally delimited when presented to the functions
hope this helps
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
Hi.
I would like to know how to change the color and/or font of a CListCtrl box item. For example, let say you have the following listbox.
// Column header
Cars Year
// Column item
X 0
Y 1
Z 2
.....
I would like to make row 0 have yellow text and display font "blah."
I would like to make row 1 have green text and display font "blah2."
Thanks,
Kuphryn
|
|
|
|
|
|
|
|
Try something like this:
HTREEITEM selectedItem;
int index=0;
while( GetParentItem(selectedItem)!=NULL )
{
selectedItem = GetParectItem(selectedItem);
index++;
}
I'm not quite sure what you mean by index so that might not be what you want.
There's always one more bug.
|
|
|
|
|
I am running an application on ShellExecute and I need to see its stderr output. how can I do that?
thanks
|
|
|
|
|
Try using CreateProcess.
Concussus surgo.
When struck I rise.
|
|
|
|
|
thanks.
now the problem is that I am using mfc dialog-based window and the stdin is not working (GetStdHandle(STD_INPUT_HANDLE) return 0), I think that why when I try to read from the pipe it is giving me the replay that the pipe is broken, same code in a console base project works fine,
any idea how to fix it?
Eliad.
|
|
|
|
|
Yes, you need to call AllocConsole (or the less useful AttachConsole) when you're not in a console application; Windows call it for you when you are starting a console application, but not in a GUI app.
Concussus surgo.
When struck I rise.
|
|
|
|
|
Hi,
I wanna terminate another application given by handle (hWnd) programmatically.
I tried
CWnd* pWnd = FromHandle(hWnd);
pWnd->DestroyWindow();
and also
pWnd->SendMessage(WM_DESTROY);
without much effect.
Could somebody please help
Thanks
R.
|
|
|
|
|
I have tried
pWnd->SendMessage(WM_CLOSE);
with no effect. BUT
pWnd->PostMessage(WM_CLOSE);
works just fine.
Case solved.
R.
|
|
|
|
|
I have made a dll file that contains a few menus and a few dialogs.
This dll hooks and see if certain window is appeared or not.(Hooking WM_SHOWWINDOW)
If it receives the message, it adds the menu to the end of the menu bar,
and make set the wndproc to new subclass in dll file to intercept the new menu message.
When user click the item in extended menu, then it opens dialog box in the resource.
Now, I have 3 dialogs.
1 contains 3 Statics.
2 contains 1 Checkbox, 3 Statics, 2 Slider(Trackbar), 2 Edit box.
3 contains 1 Checkbox, 1 Statics.
2 and 3 is contained by propertysheet.
Dialog 2 works perfectly fine. The color is fine, the slider bar, checkbox, and editbox are all working fine.
However, 1 and 3 are very strange.
the statics in dialog 1 has white background color, whereas the background of the window is grey.
the statics in dialog 3 is the same thing, white background color, and the check box has black background color and cannot be checked.
I dont know why this is like this because i made all of them in same way.
Does anyone know how to fix this thing? Thx
|
|
|
|
|
I am looking for some code that will copy all the files in one folder to another some where else?
|
|
|
|
|
system("cmd.exe /c xcopy * destination");
Replace destination with the destination of your choice.
|
|
|
|
|
wont that just copy the file cmd.exe not a folder?
|
|
|
|