|
Hi all,
calling GetProcessMemoryInfo is generating error LNK 2019 , can any one help me regarding this.
mpk1979
|
|
|
|
|
|
ya, i got it , i need to include psapi.lib in the linker options,thanks
|
|
|
|
|
prasad_som wrote: And whats that error ?
Did you miss "LNK2019" in both the subject and the body?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
As usual, I checked LNK 2019 , in MSDN Apr-2001. And could not find it. With VS 6.0 its LNK 2001. Thats why asked for error message.
Though, its present in latest one. I should have checked that.
|
|
|
|
|
Did you see Requirements on MSDN?
Header: Declared in Psapi.h.
Library: Use Psapi.lib.
|
|
|
|
|
Hello friends
I need your Help!!
I want to Fetch a value of clumn but i am unable to make query in VC++.
plz guide me..
I use pointer of CDaoDataBase class and member Funtion is Execute().
Hoping Best from u!!
Thankx
Born To Code
|
|
|
|
|
Remark from MSDN about Execute:
Execute works only for action queries or SQL pass-through queries that do not return results. It does not work for select queries, which return records.
|
|
|
|
|
|
One way is to derive a class from CDaoRecordset . Then just change the GetSQL() method (it default to SELECT * ) to select those columns and rows you want.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I want to print a small bitmap image using c++ (not MFC). I don't have a problem in printing normal text. But now I want to print an image.
|
|
|
|
|
Sorry for incomplete information. I want to print using a standard LPT printer. for example, to print some text we can print simply by writing it into a file (naming the file as "LPT1" inside the program). But how do I print a image?
|
|
|
|
|
Do you need to print an image file?
|
|
|
|
|
Anybody with experiences in deploying CR9 with an application developed in VC 6.0 please help!
I'm pulling my hair out one by one! App should be installed on win98 machines!
I'm using CR9 Crystal Report Viewer Control implemented in my app, with printing, exporting functions as well.
I build my setup package with Inno. I used all the crystal docs could find in the topic of figuring dependencies.
I already have a bunch of files installed. I know the issue with unicows.dll, atl.dll, registering, not registering, etc. When I'm about to show the report in the app, it dies without errormessage.
I already have all the files installed that Dependency Walker shows, same mdac, but still doesn't work.
I developed the app under XP, but since than I installed the VC 6.0 to a win98 machine as well to check dependencies. Is anybody out there who has something similar working on win98? Might be possible to check file versions...
thanks
|
|
|
|
|
Hi, I got through the same problem some time ago and there is the solution. Inno script with Crystal Report Installation.
Crystal Report 9 and 11 Installation - Inno Script
I like Inno since it's fast, easy and you have full control over the whole process. Crystal Report msi package is just pain.
Hope It helps.
|
|
|
|
|
Hi, I am trying to create a simple control which is a subclass of COMBOBOX. So using MSDE 2003, new C++ MFC project, create control based on COMBOBOX.
How do I expose the combobox's existing functions like AddItem in my subclassed control? Do I have to add same method to both ctrl and interface?
Many thanks for any helpful pointers...
Patrick
|
|
|
|
|
What do you mean exactly ? You want that the user of the control will be able to call AddItem (for example) as it was possible to do with the combobox ? If yes, then you don't need to do anything: the class 'inherits' also all functions from the base class.
|
|
|
|
|
Yes, that's exactly what I mean. But currently they do not have any methods/properties/events. I can do things like add the OnClick event though, by adding a "stock" event.
If they should be there already then it means I am doing something wrong - I will see if there is anything obvious I am missing.
Thanks.
|
|
|
|
|
I have a Datatype misalignment issue with one of my dll's.
The thing is that all the code inside the dll used to be in a normal .exe application, but since multiple apps will use the functionality inside it we decided to make it a .dll. When the code was completely in the .exe applications everything went very smooth, now however that I made a dll I got this Datatype misalignment issue.
If I do a step by step debug the crash occurs on a line:
m_zsRow = new char[nLen+1];<br />
with m_zsRow being a normal char* declared in the class header.
Does anybody know how this could happen? And how I can fix this?
Thanks for any help you might provide,
Greetings,
Davy
|
|
|
|
|
GDavy wrote: If I do a step by step debug the crash occurs on a line:
m_zsRow = new char[nLen+1];
Can you show complete function code, having this line?
|
|
|
|
|
Hello,
Well apparantly all that was needed to find the answer myself was to post the question here .
The error apparantly was not located in that function, it was a few steps up in the call-stack. There was memory being allocated like:
char* aString = new char(A_Certain_Length);
so with parenthesis in stead of square brackets. How nobody found that out earlier is a wonder to me... Anyways, fixing this fixed the problem. I don't know why this caused the Datatype misalignment error though.
Thanks anyway,
Davy
|
|
|
|
|
OUCH!
char* aString = new char(A_Certain_Length);
What is aString after executing that??
|
|
|
|
|
I am developing a NTService program. And I want to know when any user logs into the system. Is there any kind of message sent to the application program when a user logs in.
|
|
|
|
|
Check out ISensLogon::Logon() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have to put some graphical functions to an dialog-based application using MFC/GDI/GDI+.
One of them is to give the user the abbility to write text-comments on a image.
Like you can do in MSPaint (and Photshop, GIMP ... ).
I found thats relatively easy to parse the mouse - and keyboard input and simply write it to screen (using Graphics DrawString - Method), but it seems to be not trivial to enable editing of the written text (blinking cursor when double-clicking on the text ie).
Or setting up a correct-sized (and blinking ) cursor to signalize, that the app is ready to parse keyboard input.
So, does someone got a idea how to implement MSPaint-like text input on CWnd?
Searched for 2 days for demo-projects or smth like that, no success at all.
Thanks in advance and sorry for my ******* english.
|
|
|
|