|
jhwurmbach wrote: It seem as if the black hats are recruiting. There are quite a lot of questions of this kind around.
There is hope as long as they ask that kind of questions!
|
|
|
|
|
Hi all,
I have a Embeded VC++ (4.0) application , which builds fine to run on a device having Win CE 4.2 , But when i try to build the same workspace to run on a device having Win CE 3.0. I get a "Platform Manager server failed error".
Do i need to do some configuration settings for the Platform Manager under Tools Menu?
What settings do i need to do?.
Thanks (in advance)
|
|
|
|
|
Hi gurus,
I am about to develop a new project and confused on which type I should use. Since I will NOT handle any file (serialization), I don't need Doc/View support.
In the past, I have always used dialog-based, but I have read comments in this forum regarding "avoid dialog-based, and go with CFormView SDI instead". I don't remember the reasons (but maybe related to serialization support and menu/hotkeys).
Also, I see that disabling Doc/View support means I cannot choose CFormView as my base class for the main view. (And since the main window will have a lot of controls, I don't want to create/arrange them in run time). Should I still go with SDI? Why some people seem really dislike dialog-based approach?
Thanks in advance for any comments/pointers.
|
|
|
|
|
You can use Serialization support in Dialog based applications too. So Serialization is not is selection criteria. First decide what your application is all about, the User entries requirements, etc and then select SDI or Dialog based.
|
|
|
|
|
OK, then what are the selection criterias usually used by others for deciding between SDI vs. dialog based?
My app is an inventory management using database, which I think can be done either way. (CRecordView doesn't fit my need, so CView-derived class is not a plus here).
|
|
|
|
|
Hi,
You have a MainFrame than, there-in you have a Client-Area. In this Client-Area you put a ( or more than one, in MDI ) CChildWnd derived Class ( a derived CMDIChildWnd-derived for MDI ).
In this Frame you put a View. You can arrange all controls by programmation. But you can also create
a Dialog in the Ressouce-Manager and create a class from it, there you choose CFormView.
Then you accord the View with the Frame and ready ...
I also don't use Doc's. I also don't use DocTemplates. I create each Child dynamicaly.
Greetings
|
|
|
|
|
Are you saying that I can create several CFormView's with different layout, then choose one of them on runtime?
|
|
|
|
|
I have create a Universal-Frame, which can be loaded with a specific View.
I self i switch different Views in i subcontrol ( a Tab-Control )
UniChild *NewChild = new UniChild("Customers"); // thats the call to open the child
in the constructor i test the String an if it's f.ex. "Customers" i create the view like this :
CCreateContext CC;
CC.m_pCurrentFrame = this;
CC->m_pNewViewClass = RUNTIME_CLASS ( FKundensucheView );
Act_View = DYNAMIC_DOWNCAST( CWnd, this->CreateView(&CC) );
But you can look here :
http://www.codeproject.com/docview/MultiView.asp
I use this method, it works and till now i don't have trouble
|
|
|
|
|
Hi all,
I have a requirement of logging an error event from win32 application. This log message should be visible from Event Logger from control panel -> admin tools. I found one api LogEvent(...) but i don't know how to get first argument (handle for resource id).
Kindly do any help on this
-----
pavan
|
|
|
|
|
|
http://www.codeproject.com/system/xeventlog.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
To log the event, u can u RegisterEventSource()/OpenEventLog() and ReportEvent() .
Come online at:-
jubinc@skype
|
|
|
|
|
|
In my application i need to show user some html pages for that i need to open the default internet browser. Pls could someone tell how to open internet browser.
-Vikram.
|
|
|
|
|
|
Locate the htmlfile subkey under HKCR in the registry. Then open HKCR\htmlfile\shell\open\command using APIs.
--Default string of command contains the default internet browsers.
Come online at:-
jubinc@skype
|
|
|
|
|
vikram Verma wrote: i need to open the default internet browser. Pls could someone tell how to open internet browser.
if defualt is FireFox.. what would will your app do...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
this code opens up mozzilla (if its the default browser)..
ShellExecute(NULL, "open", "iexplore.exe",
"http://www.microsoft.com", NULL,
SW_SHOWNORMAL);
|
|
|
|
|
Hi All,
I have a requirement for a program (service) to start as early as poosible during boot. I was looking for some references on "driver service" as mentioned in Services[^] and boot time services (start type of SERVICE_SYSTEM_START or SERVICE_BOOT_START.
In the case of SERVICE_BOOT_START, it appears a driver is required since it is started by IoInitSystem.
Should I be deeper in the DDK at this point? I found a very nice article by Tim Deveaux[^].
Jeff
|
|
|
|
|
Exactly. SERVICE_BOOT_START is for Device Drivers. Instead, u should use SERVICE_SYSTEM_START. It gets started before logon.
Come online at:-
jubinc@skype
|
|
|
|
|
Hi Don,
Last question then - does SERVICE_SYSTEM_START conform to userland Service requirements?
Jeff
|
|
|
|
|
Looking at various Boot Services (for example, installed by Norton AntiVirus) using dumpbin, the answer is No.
|
|
|
|
|
Does anyone know Add/Remove programs interacts with the .Inf Files(which seem to follow a syntax similar to the Old .Ini Files)
I feel that these files speak an 'instalation language', interpreted by AddRemove Programs,Hardware Wizzards, Etc.
Does anyone know how this works, or, where to find out how it works.
regards
LateNightsInNewry
|
|
|
|
|
I am writing a program where two different times in a day are giving and the program will solve how many hour and how many minutes.
For example:
input start time
input end time
output duration
or
input 5:30
input 6:40
output 1 hour 10 minutes
can anybody help me?
|
|
|
|
|
What have you written so far ?
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|