|
have u done a virus scan?
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" biz stuff about me
|
|
|
|
|
Hi, it happens the same to me, and it is not a virus.
Any help?
|
|
|
|
|
Hi,
I'm trying to find a way for an out-of-process COM server (built w/o MFC support) to control the client application's cursor (shape).
Up to this point, I've tried several different variations of LoadCursor/SetCursor; e.g.:
HCURSOR NewCursor = LoadCursor(0, IDC_WAIT);
HCURSOR OldCursor = SetCursor(NewCursor);
I've also tried to retrieve a handle to the client's window and modify the app window class' properties (for the cursor) ; e.g.:
HCURSOR NewCursor = LoadCursor(0, IDC_WAIT);
HWND hwnd = GetActiveWindow(); // returned a NULL value
DWORD OldCursor = SetClassLong(hwnd, GCL_HCURSOR, (LONG)NewCursor);
In all cases, the application builds but does not modify the cursor. I think the primary problem I'm dealing w/ here is the fact that the COM server is out-of-process.
Any suggestions?
Thanks,
Steve
|
|
|
|
|
Hello,
I have a strange problem with binding using the macro BEGIN_ADO_BINDING(CCustomRS) .
Here is my code:
#define INITGUID
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" rename_namespace("ADOCG") rename ("EOF", "EndOfFile")
using namespace ADOCG;
#include "icrsint.h"
class CSeachCustRS : public CADORecordBinding
{
BEGIN_ADO_BINDING(CSearchCustRS)
ADO_FIXED_LENGTH_ENTRY(1, adInteger, m_lCustomerID, lCustomerIDS, FALSE)
ADO_VARIABLE_LENGTH_ENTRY2(2, adVarChar, m_szCompName, sizeof(m_szCompName), lCompNameS, TRUE)
..
..
END_ADO_BINDING()
public:
LONG m_lCustomerID;
ULONG lCustomerIDS;
CHAR m_szCompName[101];
ULONG lCompNameS;
..
..
};
I am getting these errors:
syntax: missing ';' before identifier 'ADORowClass'
CSearchCustRS::ADORowClass: missing storage-class or type specifiers.
The error line is the BEGIN_ADO_BINDING(CSearchCustRS) .
I have used this method successfully before, but now it will not compile...
If anybody has any experience in this area suggestions would be appriciated!
Thanks
|
|
|
|
|
just a spelling error! 'seach' instead of 'search'
gotta love that!
|
|
|
|
|
Look at the bright side! At least it only took you 2.5 hours to figure it out.
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
Hi
I write a wave file and want to play it with sndPlaySound, but all I get is a a beep from the PC speaker. PlaySound has the same effect. Other applications play my wave file fine, and I can play other sound files with sndPlaySound function. What is wrong?
tx
|
|
|
|
|
Hello,
I want to put a string in a XML document, but
sometimes the string can have character(s) that
are not compliant with XML, for example
put this string "<test>" doen't work because it's a
tag for XML.
What is the best way to convert a string into an XML
compliant format ?
A VC ++ function ?
A MSXML function ?
Thanks for your answers !!!
|
|
|
|
|
if you're using CStrings, you can just use the Replace member function
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
|
If you use msxml, this will be automatically handled when you write the xml file somewhere (stream, memory, disk). (" are replaced with ", < are replaced with <, and & replaced with & ).
How low can you go ? (enculage MS)
|
|
|
|
|
Hi all,
I have several *.mak files that I have modified to fix various issues in my builds. I need to be able to import these makefile back into the projects from which they came from. I cannot find a way to do this. Is this possible? Or do I have to physically add in the changes to the project file piece by piece? I thought there would be a quick and dirty way to import the makefile back in Visual Studio. Any help is GREATLY appreciated.
Thanks!
Danielson
|
|
|
|
|
Hello,
I want to ask how to store a String in 2-D array foramt?
e.g.
abc[0][0]="A";
abc[0][1]="AA";
abc[0][2]="AAA";
......
....
..
abc[n][n]="AAAAAAAAAAAAAAA";
THX!!!
;)
|
|
|
|
|
MFC or no?
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
Consider a vector of string objects.
Kuphryn
|
|
|
|
|
. MFC MDI project. I have a splashscreen class which instantiates an object in the initInstance in the app class. When this function goes out of scope, the splash screen is supposed to vanish since it was a local object. Does so fine on Win2K. On win98 however, it stays there even after the UI has come up! How dO I get rid of it? Any ideas why this is happening?
Appreciate your help,
ns
|
|
|
|
|
Can't you just put a close member into your splash class, and call it manually, rather than just closing in the splash's destructor and hoping the object gets deleted? (Less neat, I know, but at least that way you know exactly what's going to happen)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Okay. This might sound dumb. I didnt write the class.It has two things in it: create and onPaint, plus the constructor and destructor. What would I put in my Close() function? I dont think we can call the destructor right? Again, sorry if its an obvious question.....
Appreciate your help,
ns
|
|
|
|
|
Ahh, so I guess you've currently got something like
MyClass::MyFunction()
{
CSplashScreen Splash;
..do your startup processing here..
}
The Splash object should automatically get deleted at the end of the function, when it goes out of scope, but for some reason it isn't.
Instead, try changing it to:
MyClass::MyFunction()
{
CSplashScreen* pSplash;
pSplash = new CSplashScreen;
..do your startup processing here..
delete pSplash;
}
(I.e. you now have full control over the creation and destruction of the splash screen object, which should force it to close when you want it to)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Most excellent! I truly thank you for the idea - I was getting bogged d own in what to write in a Close() function. I have to remember this idea for future use too....the power of new and delete
Appreciate your help,
ns
|
|
|
|
|
I havent yet ever called a C dll from within my MFC program. What is the procedure for this? Where can I find this information? The C dll might be MFC too, or maybe just plain C++.
Appreciate your help,
ns
|
|
|
|
|
The easier ones (and it's most of them) will come with a .H and a .LIB.
So, you just #include the proper .H and #pragma comment(lib, "blablabla.lib") the supplied .lib
Others don't and you'll have to resort to the LoadLibrary() API call.
Q261186 - Computer Randomly Plays Classical Music
|
|
|
|
|
Thanks > I'll check out the loadlibrary function...and make a little fake MFC dll app to see what files are generated - if I get the .lib and .h file...question is which .h are we talking about? There are so many... Anyways, perhaps I should try my test before any further questions about this.....
Appreciate your help,
ns
|
|
|
|
|
Usually the files will all be named the same, so if you've got SomeRandomLibrary.dll you should also get a SomeRandomLibrary.h and a SomeRandomLibrary.lib
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Ah! Thank you. So if you are given the .h and .lib for a dll, you just include those appropriately, but if its just the dll thats available, then you have to do loadLibrary.....
Appreciate your help,
ns
|
|
|
|