|
Sorry, just to add in, i am using on embedded Visual C++, so that is why only __try and __except and __finally i can use.unless is using version 4, then i can use try and catch.. but that will have to recompile for a new window CE OS.
i can do without __finally, then i can use return statement; but since __finally is a cleanup code, so i thought can use...make the codes cleaner also.
so any suggestions?
what is RTTI actually?
|
|
|
|
|
IceBerG71 wrote:
what is RTTI actually?
Run Time Type Information.
It is the standard conformant way of determining a type at runtime.
The same is done in MFC with things like IsKindOf() , but with this approach all objects need to have the same base class (CObject ).
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
hi
i want the code about reading data from the modem actually i want to save the web page that a user is requesting on the LAN while i am on the proxy server how can i save that very page by all the information going to the user through the proxy server
tell me as soon as possible
regards
|
|
|
|
|
How to detect a new device was installed ? (What message/event?)
Basicly I've got an app that uses webcam(s).
When they unplug, I get a nice event that the device is unplugged.
But how can I detect that a (usb) device is being connected ?
I assume there's a windows-message indicating a new device connection,
but I don't have a clue where to find documentation about this.
(MSDN isn't always as clear as you'd like it to be )
Ciao,
Led
|
|
|
|
|
WM_DEVICECHANGE.
Tech.Support : Mam, is your pc running under windows?
Customer : No actually its close to the main door.
|
|
|
|
|
Thanks, exactly what I was looking for.
After 35 minutes I couldn't find anything,
and while you posted I found it myself.
Stupid me....
|
|
|
|
|
Hello all,
i'm developing a progarm which able to update the removable drive (disk size, etc..) information after some checking. Any suggestion of how to do it?? what should i look at first??
Thanks!!
|
|
|
|
|
Hi!
I have a small problem. I am using the win32 api and I am trying to create a database application with ado.
I am using the Filter to search some keyword in my dabase and it works fine. But how can the databse notify me when there is no match for that keyword?
Thank you very much for your future answers!
Well... I am a beginner ...
|
|
|
|
|
No Question...
Just Testing The Length Of The Subject.
|
|
|
|
|
t'es pas relou toi ;P
TOXCCT
|
|
|
|
|
Hi all. Do anyone know how to open two windows as soon as I open my application? One window is used to display some output during the running of the application and the other window is used for the user to open some image file. Does anyone know how to do this? Thank you.
|
|
|
|
|
Hi...
-----
If I understand your question (which I dont).
If you want your app to be with multi windows.
(*in you example 2 windows*)
You can call twice "CreateWindow(...)"
but then you use the same winproc
or
You can register 2 difrent classes for 2 diffrent window procs
and call "CreateWindow(...)" twice also,
but ONE for each registered class
=-=-=-=-=-=
The-Server
|
|
|
|
|
HI. Thank you for your reply. What I mean is that when I open my application, it will display two blank child windows (frames) instead of the usual one. Hope this is more clear.
|
|
|
|
|
I m very sorry...
But I dont understand what you want to do.
If you are talking about programming in VCPP.
Please let me know what are you talking about,
I m very intresting in your question...
Because I just dont understand it.
I have some question for you:
How many windows in total? (include the main one)
How many & what types if windows you have in total?
Also, How many times you need to call RegisterClass(...)
=-=-=-=-=-=
The-Server
|
|
|
|
|
Hi. thank you for your reply. I am using VC++ and mfc in my application. Usually if you create a MDI application, when you run the program, only one child frame or window is opened. What I wanted to do is that when my application is double clicked, it runs and two blank child windows should be opened instead of just one as in the normal case. So in total, I have the main window, and two child windows inside the main window. I tried using another CView class for the second child window but it did not work. I keep getting the error "COutputView (the class I created) is not a class or namespace name" and I do not know how to resolve it. Hope you understand now. Thank you.
|
|
|
|
|
Yes..
It took me some time,
But finally I get it.
Sorry to disapoint you,
But I didn't work with MFC since 1999...
It's about 4 years now.
=-=-=-=-=-=-
The-Server
|
|
|
|
|
In a CDialog I place and draw some controls, like buttons
by hands coordinating them in usual pixels.
With change of system font proportions of CDialog position and size of native CDialog controls changes not proportionally to
pixels... So Proportionality in sizes looses.
So Question is:
Which functions help to translate pixel coordinates
with system font change ?
thanks you
|
|
|
|
|
I don't know if this helps you directly, but you may have a look on this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dngdi/html/highdpiapp.asp
|
|
|
|
|
I need to play two *.WAV files at the same time in my application - as in solitaire games - the first file is the background music and second sound file is played when the cards are moved (or similar events). Any idea how to do this? I'm trying with PlaySound() and a new thread, but nothing is happenning - maybe I can't set the flags properly or there is something else?
|
|
|
|
|
void StartPlayTwoSounds()
{
PlaySound("MyFirstSound.wav", NULL, SND_FILENAME | SND_ASYNC);
PlaySound("MySecondSound.wav", NULL, SND_FILENAME | SND_ASYNC);
}
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|
|
It doesn't work man
In that order only second file is played, but not the first!
|
|
|
|
|
well guys i am tired of using CSocket and CAsyncSocket buggy MFC sockets classes.
It was biggest mistake i did when i started two huge projects using these classes .now these projects are complete but the problem is , it is giving satisfactory results but not really good(Normally after some communication CSocket becomes useless , so i have to close it and again establishing connection and it is due to buggy message pumping mechanism of these sockets)
so if any have some good implemention of WINSOCK , specially a class which could handle the event notification like OnRecieve , OnCLose as in CSocket , and almost the same public initerface as CSocket etc.
It will make it possible to streight away replace CSocket with new one and no change in my existing projects .
If some body could refer some tested code in this regard , i 'll be really thankfull to him.
No Worries!
|
|
|
|
|
How familiar with Winsock are you? I prefer writing your own class from scratch and implement the features you want and nothing else.
I'm doing this right now for a project in school.
But you can always try google
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|
|
dit you have a look on CSocket...?;P
TOXCCT
|
|
|
|
|
What do you mean?
BTW, your name reminds me about Britney's latest video, Toxic! :drool:
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|