|
buddy the many good project on cpu usage and memory usage on cp.
For Memory Usage ->use these api
GlobalMemoryStatus();
an for cpu usage seARCH FOR THI ARTICLE ON CODEPROJECT
-> Access the NT Performance Counters
BY PJ NAUGHTER
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
See my response here.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Thank u soooo much.
____________________________________________________________
rishabhs
I think therefore I am.
|
|
|
|
|
Hi Gurus,
I got some kind of unusual program to do...
I am viewing a web page in Internet Explorer 6.0, and I got a flash object in that page. So, I want to ask you if it's technically possible to write program that will send OnClick message to the Internet Explorer window? And if it does can you give me some help how to do this thing, please. Or maybe some links would be helpful too...Thanx.
xedom developers team
|
|
|
|
|
Some clarity needed...
1) are you talking about onclick from outside IE process -- external process telling IE that a key sequence has been entered?
2) communication between IE (browser window) and (Macromedia) Flash object?
* Flash object to browser window
* browser window to Flash object
* Flash object to another Flash object
(above three are documented at Macromedia (Flash) site, see "communicating between objects")
Good luck, sounds like interesting stuff you're 'bout to do!
John John
|
|
|
|
|
1) Yes, I want to write a windows or .NET application with button on the form, and when I run this application and click button on the form a message LB_MOUSE_CLICK (or something, I just don't remember because I've not used MFC since 2002) will be send to IE window.
2)Excuse me, but I think I do not understand you clearly... I mean that there is a web site and on the one of the web pages of this website there is a flash object and I want send ON_CLICK message to that IE window wich is currently displaying web page with flash object, from my Win32 or .NET application
xedom developers team
|
|
|
|
|
Hai Everybody,
How to Load a Bitmap on a Dialog from a specified Path and it should be stretched to the entire screen that is already filled with dialog.
For instance:
1.Dialog should fill the screen. No Problem working nice.
2.Bitmap should fill the screen from a specified path. Problem.........
d:\\codeProject\\a.bmp
It's for both win2000 & winCE.
Thanks in advance
Darwin
DARWIN PAUL RAJ
|
|
|
|
|
here is Small piece of code that will help you out
HBITMAP hbit=(HBITMAP)LoadImage(0,OpenFileDialog.m_ofn.lpstrFile,IMAGE_BITMAP,300,300,LR_LOADFROMFILE);
and you got the handle the image
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Thank you,
Where I have to specify my file path and LR_LOADFROMFILE is not supported by WinCE,It shows that undeclared identifier, When I refered MSDN and put Zero instead of LR_LOADFROMFILE.
with regards
DARWIN PAUL RAJ
|
|
|
|
|
While help for LoadImage() does not say that LR_LOADFROMFILE can be used for the fuLoad parameter, it does mention it in the lpszName section as though it is a possibility. Have you search through each of the .H files to see if it is defined?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
give code to send mail through outlook, on a button click event
|
|
|
|
|
You may want to ask nicely in future.
Seeing as I am in a nice mood today. What exactly do you want. I could show you some code that uses MAPI. That will achieve what you want!
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Hi
I am reading text from UTF8 text file. I want to convert text to
unicode to display in textbox.Pls help anyone ASAP.
Thanks
|
|
|
|
|
My main .cpp file is getting too big.
I tried to create a new file to place all new functions to the main class, but then run into compiler errors.
Are they a simple way of splitting up a large file into several smaller files and not running into the mess as to what headers to include.
I thought that Visual Studio would have managed this when I add new funtions (via the IDE) but No!
Typical error
c:\My_Example\My_ExampleDlg.h(42): error C2065: 'IDD_MY_EXAMPLE_DIALOG' : undeclared identifier
But when I place all the functions into a single file all is OK.
|
|
|
|
|
include resource.h before dialog class
and i think your problem will be solved
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Ok, but now I get:-
Emulators.cpp(86) : fatal error C1010: unexpected end of file while looking for precompiled header directive

|
|
|
|
|
tell me one thing,r u using ClasWizard to create a dialog based Application
or you have coded ur self
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I have used the Class Wizard.
I have a larg .h file with lots of defines and const; and the complier soon starts to complain about some items in this file.
But when I go back to one large file, all is OK.
|
|
|
|
|
buddy do one thing zip the file and email to me,i willl correct the code
-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
My application uses 3rd party ActiveX control (Global Majic) and an API from another company. It also uses data structures from another project, so could be quite large.
Question do you realy want to take this on?
All I want to do is have the main Main.cpp file split into several smaller files - just to make it easy the edit/manage.
|
|
|
|
|
|
Did you ever get an answer to this ?
I have exactly the same problem!
Any assistance greatly received

|
|
|
|
|
I did manage to split my program into several files. I moved pocedures into another C++ file and included all the header files that the main program had (then started to remove what I could).
All you need to do is Add New file to project then move the procedures that you want to place in this new file (No header file required).
Then just place at the top of the file the #includes that the MAINDlg.H file has - may not need them all.
No need to do anything else with the project.
Hope this helps.
|
|
|
|
|
Hi there,
I had a very tough scenario, and seriously i had no idea how to solve this. It will be long as i tried to explain in detail. I need a good solution based on those who coded c++ and writes dlls.
Before this:
There is a dll called by UtilityA.dll. It was called by a UtilityMain SDK. In UtilityA.dll, it actually calls a 3rd party dll called 3rdPartyv1.dll. The main reason of UtilityA.dll existence is to write a wrapper and simplies stuff. So the UtilityMain SDK can call it easier. No idea why it is done like that.
Now:
We had released a new hardware. The new hardwares uses the new 3rdPartyv2.dll. There are 19 functions inside the 3rdPartyv2.dll if compare to 3rdPartyv1.dll which only contains 15 functions. But the names are roughly the same, but in some functions, there are additional paremeters and return different data types.
I need to write a wrapper for the 3rdPartyv2.dll that will called the new UtilityB.dll instead of UtilityA.dll with additional new 4 functions (19 - 15). So my SDK can called my UtilityB.dll.
The problems now:
1) We had many SDKs, around 20 versions. On different companies and countries.
2) If we use a different wrappers name, we had to recompile the SDK. Which is kind of tough!
3) If we stick the same called UtilityA.dll, but just say in future, the hardware already more advanced and a different modal. We can't just use UtilityA.dll again and again.
Real example:
Reader - Utility435.dll which calls the MXM435.dll which MXM435 is a reader device. Now there is a new model called MXM467 reader. If i use back the same Utility435.dll, which is misleading, does not represent anything. No choice the previous coders, never think of this problem.
4) There are many applications already being developed in VB6. We can't ask all the clients to recompile their apps because the SDK had been modified. Very very tough deployment.
How can we solve this scenario? Now is between the wrapper and the SDK.
Is there anyway to write a plugin to the SDK. As what i know from C#, you can write a library that exposes some interfaces, so you can write a plugin to it. But now the SDK had existed, and it was badly done i suppose. I not even sure it can have plugin enabled.
I was hoping to write something, that can add on to the SDK on run time or dynamically without recompiling any existing codes, and won't affect any parties. But of course I had to change the new 3rdPartyv2.dll and the new wrapper. Just don't want to recompile the SDK.
3rdPartyv1.dll and 3rdPartyv2.dll - C dlls.
UtilityA.dll and UtilityB.dll -> C++ dlls.
SDK - C++
Application layer - VB6, C++, ASP
Any help please?
Thanks.
Regards,
Chua Wen Ching
|
|
|
|
|
Well, I must admit this scheme looks quite silly. However to find reasonable solution I think we need to clarify something. You said that you don't want to change SDK, but how do you expect users to access new function in 3rdPatry.dll? Unless of course those functions for Utility.dll use only and if this is a case then I don't see problem anymore.
|
|
|
|