|
This code would cause that error:
in .h file:
class A
{
void function1(){};
};
in .cpp file:
void function1()
{
}
If you would remove the {} in the .h file it would compile!
See if CIPAddressCtrl looks like that.
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
hi friends,
My question is related to VC.NET. I am working on VC++ on my application since last 1 yr. Now we are migrating to VC.NET. In the process, i am getting 100 errors related to T2A macro.
the macro converts to W2A under unicode build.
the error is "error C2664: 'T2A' : cannot convert parameter 1 from 'CString' to 'LPTSTR'" . the same line of code was working well/ works well in VC 6 env.
the code is
xmlSetProp(relListNode, SAFE_CAST("rid"), SAFE_CAST (T2A(relID)));
Please ignore the XML related stuff. The area of problem is
T2A(CString) .
If anyone knows any solution, please help.
Thnaks and regards.
Vikram
|
|
|
|
|
There is no conversion for CString to a non-const string.
Reading the help, it looks like you need to use the T2CA macro.
|
|
|
|
|
I have created my own files going along with my application, let's say they are .rage files. How do I do to get them programatically registered, so that if I click on myfile.rage, for instance, it opens my application and load my file ?
Has this to do with the shell or with the registry or both ?
~RaGE();
|
|
|
|
|
Yes. You can create a key .rage\shell\open\command in your HKCR key. At command add something like: "yourapplication.exe %1"
Exontrol Software Inc.
http://www.exontrol.com
|
|
|
|
|
Thanks, but this is not working (i have to run it under NT). Restarting does not help...
~RaGE();
|
|
|
|
|
Hi,
We need to detect with our App under Windows XP whether the application has a manifest file associated with it.
Does anyone know of a method of checking to see if the instance of our app has the manifest file associated with it, we need this to switch on XP style buttons in the UI toolkit we have bought in.
Thanx
Dave
|
|
|
|
|
I have a game that allows you to display the frame rate in the upper right corner of the screen. I want to intercept the data being shown there so I can determine the minimum and maximum frame rate attained (it changes wildly depending on the current conditions of the game).
I tried using Spy++ to see if I might be able to get a window handle (wehile the game was running), but no joy.
Does anyone have an idea of how I might go about intercepting this data?
Oh yeah, it must work no matter which 3d engine the game is using - OpenGL or DirectX, and it would be nice if it would also work in both full-screen AND windowed mode.
Many thanks in advance.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
At one point I hide the Cdialogs.....pDlg->SHowWIndow(SW_HIDE);
Later when the user definitely decides he is going through with a certain action, I want to destroy them (modeless) pDlg->DestroyWindow();
Do I have to do a SHowWIndow(SW_SHOW) right before I destroy, or can I go ahead and destroy the hidden CDlg?
Thanks
Appreciate your help,
ns
|
|
|
|
|
No need to show the window. Just point your AK47 at it and KABOOM.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Its FRidayyyyyyyy! Whatcha doing today? Is it time to go home yet............?
Appreciate your help,
ns
|
|
|
|
|
Heh. Worked from home yesterday, and hacked late into the night! Decided to have cereal at 2:00am and realized I was out of milk.
But on the bright side, I'm having fun with Xerces and Doxygen. Now I have to fight fresh snow during my 1.5 hour drive into Cambridge. Wheeeeee!
Have a great weekend!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
yup - doxygens cool...I havent fully explored it...drive safely....70 Deg F here....
Appreciate your help,
ns
|
|
|
|
|
Hey, does anyone know how to close a certain program that is running. I am making a toolbar to contol Kazaa and I found out how to open Kazaa but now I need to know how I can close it. Is there a message I send?? Thanks for any help.
|
|
|
|
|
Try using CWnd::FindWindow() to find its main window, then SendMessage() it a WM_CLOSE .
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
|
Nice! Thanks for the link!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Wow, thanks for the quick posts guys
|
|
|
|
|
Hello
It's a standard mfc control ? See a smaple a http://www.bacad.ch/listing.jpg
How can i implement it ?
thanks you
|
|
|
|
|
|
That's an explorerbar
http://www.exontrol.com
|
|
|
|
|
Hi there,
I'm interested in making a MS GINA replacement and using CryptoAPI. Can anyone tell me is it possible to use CryptoAPI calls before the user log in? Thank you very very much.
Also appreciate for any pointers.
Will
|
|
|
|
|
You can use almost all API's so I guess you can use the CryptoAPI from the GINA.
The problem, from a GINA dll, is often that a specific service not has started yet, and therefore you cannot do some things, so wait a bit and try again.
I have noticed a major difference between Win2k and WinXP when working with a GINA dll, there's things that is not started up in XP before the user logs on.
I mean, I have developed a GINA that uses voice auth. to log the user on. On Win2k it works fine, but XP reports that there are no soundcard present. The sound drivers don't get loaded before the first person logs on. (That makes it kinda difficult to record the users voice )
I use a virtual PC when developing GINA dll's, then I can do remote debugging, and actually single-step through the logon procedure
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
one simple Q:
does .net use a lots COM ?
if so, i will not touch it.
thx
includeh10
|
|
|
|
|
And by the way what is wrong with COM?
|
|
|
|