|
|
hi all,
I'm currently writing an app with C++ visual studio v6.0
The application follows a few process steps, so the way I'm implementing this application requires me to make the dialog display a short series of forms.
So far, I've created a base dialog with back/next and cancel buttons, and four forms. Now, what I plan on doing, is calling xxx::create() for each form and then controlling their display with the base dialog.
It seems logical enough to me, but this is the first time I've ever done this kind of program, and it's a little disconcerting that I haven't been able to find anything in the way of examples online for creating wizard style programs?
So, does anyone know if I am doing anything particularly stupid here? or better, know of any examples online that step me through an already working example of what I want to do?
|
|
|
|
|
|
Thanks a lot, Christian!
That's a bit more to go on.
searching these sites (and google in general) for various combinations of "wizard" "dialog" and "form" really wasn't throwing up anything I could see as useful!
|
|
|
|
|
Yeah, google is great, but only if the terms you want to search don't apply to 1000 other fields of interest. It's like trying to find code samples that are in C. The letter C is gonna match every site there is.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hmmm, just a suggestion: have you looked at the CPropertySheet (see here[^]) ?
You can set it in Wizzard mode. This will be really easy to implement but of course it is rather limited. If you need to have a really standard Wizzard, then I think this is the solution. You will need to remove the dialog creation in the CxxxApp class (in InitInstance) and replace it by the wizzard. I'm sure you will find useful articles on this site.
Hope this helps
|
|
|
|
|
Hi, I've developed a service that runs with Local System Account privileges. The service creates a tray icon, and works fine. When I change the Local System Account with a user account, the icon can't be showed up. Is there any restriction in Windows about this? How can i accomplish this?
Tnx
|
|
|
|
|
Is the user account, the service running in, the same as the currently logged user?
Anyway, I would not recommend to write a service that itself displays a tray icon - there's a lot of problems with such a solution (security among others).
Better idea is to write small .exe running as a normal program, that displays the tray icon and communicates with the service using some sort of (semi)secured communication channel (eg. pipes...)
|
|
|
|
|
jhad wrote:
When I change the Local System Account with a user account, the icon can't be showed up
Actaully Service can Interect with DESKTOP only WHEN it's run in LOCAL SYSTEM ACCOUNT!, thats may be problem!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
SORRY FOR THE REPEAT PLEASE RESPOND TO THIS ONE
Hi guys
I'm still strugling with the problem of reading a huge file in the most efficient way. I was suggested last week to "read the file into memory as one big chunk". I think that the advice refered to reading the data in binary format instead of text. Cool... so first I have to translate my text files into binary and then read them... Problem is that all examples that I've found refer to either read a single number or things such as a struct with phone directory...
How about reading a 2 dimensional array of doubles as text, save it as binary and then load it into another array after reading the binary file???
examples???
Thanks a million.
|
|
|
|
|
Unless the array is always the same size, the first thing you need to do is write the array bounds, so you know what to do with the data when you read it. Then you can read it in, a single number at a time, or a row at a time if you'd like.
Christian Graus - Microsoft MVP - C++
knapak wrote:
SORRY FOR THE REPEAT PLEASE RESPOND TO THIS ONE
OK - please delete the other one...
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi guys
I'm still strugling with the problem of reading a huge file in the most efficient way. I was suggested last week to "read the file into memory as one big chunk". I think that the advice refered to reading the data in binary format instead of text. Cool... so first I have to translate my text files into binary and then read them... Problem is that all examples that I've found refer to either read a single number or things such as a struct with phone directory...
How about reading a 2 dimensional array of doubles as text, save it as binary and then load it into another array after reading the binary file???
examples???
Thanks a million.
|
|
|
|
|
Unless the array is always the same size, the first thing you need to do is write the array bounds, so you know what to do with the data when you read it. Then you can read it in, a single number at a time, or a row at a time if you'd like.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
can someone explain a line in the .RC file that accompanies resource definitions in VC++ 6.0?
I have a dialog that has the line:
FONT 8, "MS Sans Serif", 0, 0, 0x1
I also have seen another version of this (seen when merging code changes with another developer) that doesn't have the numerics:
FONT 8, "MS Sans Serif"
curious on this - thanks for explanation.
Johnny
|
|
|
|
|
FONT pointsize, typeface, weight, italic, charset
RC Compiler Syntax[^]
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
"FONT pointsize, typeface" is used in DIALOG templates
"FONT pointsize, typeface, weight, italic, charset" is used in DIALOGEX templates.
Note that unless your code explicitely manipulate the dialog template (which is very unlikely), you don't have to worry about whether a regular or extended template (DIALOG/DIALOGEX) is used. Both formats are handled correctly by all Win32 versions of Windows and by MFC.
HTH,
Serge.
http://www.apptranslator.com - Localization for your Visual C++ apps
|
|
|
|
|
I know how to call a WHS from a file using the cscript application. However, does anyone know how to execute script from memory that has been passed to my application? (Auditing rules strictly forbid me from writing the script to disk first.)
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
If there's some interpreter library for the scripting language you're using you could use that obviously. If there is an executable on the system that can read the script via the command line you could obviously attempt that (Pending command line length).
The other method I can think of is that if the executable that interprets the script uses the standard input handles; you simply need to create that process and replace the standard handles then feed the process the script.
I'm just talking in general I don't know any specifics about any particular scripting language.
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
Tom Archer wrote:
I know how to call a WHS from a file using the cscript application. However, does anyone know how to execute script from memory that has been passed to my application?
Unfortunately, neither cscript or wscript allow you to do this. The only way I know of to get around this is to embed the WSH into your application. The WSH interfaces allow you to execute a string.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
you can try using msscript.ocx. just create an instance of the ScriptControl class, access it through IScriptControl interface, feed the script to it using AddCode() method, and execute it with Run() method. If you are interested, i can send you the source code for a class which wraps this functionality.
|
|
|
|
|
I would absolutely be interested. Please do send me the code.
Thanks!
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
i tried to send you an e-mail from codeproject site, but it crashed twice (although it is possible that the mail was successfully sent).
could you please provide some e-mail address so i can send you the code, because i'm not sure if the formatting will be preserved if i just paste it in. you can try to send me an e-mail with your address, you might have more luck than i did
|
|
|
|
|
Hi,
I am busy with developing an ActiveXControl for analysis of data from a Database.
One option shall be the visualization of data as a chart. Therefor I would like to use e.g. the ActiveX-ChartControl from MS (the MSChart Control).
How can I create during runtime an ActiveX Control like MSChart in an ActiveX Control?
Thanks,
Thomas
|
|
|
|
|
can any body help me with timing method to have clock into a program and how can i make precise delays???
thank you
nasa67
|
|
|
|
|