|
xxhimanshu wrote:
search for it
Well, that's precisely what i need to know. Where is it ?
xxhimanshu wrote:
cut paste the code into a file and add it to project
In french, this is called a "bulldozer solution" More seriously, the error is caused by an #include<new> which is precisely different from new.h, i guess, and i do not where it is.
I definitely think i'll have to compile at home
Thanks very much for your help.
~RaGE();
|
|
|
|
|
Rage wrote:
Well, that's precisely what i need to know. Where is it ?
It is in "<visual studio="" dir="">\VC98\Include"
Maybe one of your comuters is in urgent need of a newer platform SDK?
Or the "ProjectSettings-Tools-Options-Directories" settings are broken?
Hope this helps / Ich hoffe ich konnte Dir helfen!
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
jhwurmbach wrote:
Maybe one of your comuters is in urgent need of a newer platform SDK?
Yep, must be the point.
jhwurmbach wrote:
Ich hoffe ich konnte Dir helfen!
Ja, vielen Dank
~RaGE();
|
|
|
|
|
In the Development of ActiveX control using VB we have a property called "EditAtDesignTime", is there any similar property like this in VC++ ActiveX control ?
|
|
|
|
|
i dont know what u r exactly looking for,, but i have a trick.. you know the length of your edit box, i mean how many chars it can hold, then calculate the length of the strig it contains, now minus the length of total string that is the actual length you can see use CSting and getright(this value) you get the char at this position from right.
cheers
Himanshu
|
|
|
|
|
I want to scan ports and if they are open on a certain computer than i want them to be displayed as either closed or can't access. Can anyone help me out here..Any suggestions are welcome..Plzzzzzzzzzz I am trusting you fellas out there to help me..
thanks in advance
Cheers
|
|
|
|
|
<code>
for(int i = 0; i <= 65535; i++)
{
if(CanOpenPortOnHostUsingWinsock(lpszHost, i))
{
ShowMsgPortIsOpen(lpszHost, i);
}
}
</code>
Check the docks for info on Winsock functions.
Note that portscanning is considered bad maners by most admins...
"You can stand all night at a redlight anywhere in town, hailing Marys left and right but none of them slow down. I've seen the best of men go past. I don't wanna be the last..."
|
|
|
|
|
thanks a lot but these functions are not listed anywhere, are they ur own.if yes then can you tell me how to implement these functions. Also there is one more problem, if once it is notified that a prticular mode is open than i want it to appear close if anyone else checks this port or just say unauthorised access and deny. can you help me???? waiting for ur response..plzzz
thanks in advance..
Himanshu
|
|
|
|
|
lol, ehhhhhhh, he was just giving you an idea for how it would work. I'm pretty sure there is an article around the site that has details about port scanning, just search and ye shall find.
|
|
|
|
|
Hey,all...
My current Win32 application would do some background job while Windows enters the "screensaver" status, and it would shows a top-most dialog outside the screensaver's screen for displaying the working status and progress.
But now I encounter a problem: while the option "On resume, password protect" is set on the screensaver setting dialog in Win2K/XP, the dialog box on my application cannot be showed outside the screensaver screen, but if this option is not set, it do.
Does anyone can tell me how to solve this problem? Thanks!
|
|
|
|
|
The screen saver runs in its own desktop, so windows created by programs running as your account are not visible. It's the same with the Winlogon desktop (the one you see after you stop the screensaver), it's a separate desktop and your windows won't appear there either.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
thanks!
So, how can I do that?
|
|
|
|
|
You could write a screensaver that displays your progress.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Can any one suggest a good Vector Graphic library?
better open source
Thanks!
|
|
|
|
|
SVG. Try googling for "libSVG" and you'll probably find something.
|
|
|
|
|
Hi
I have successfully built a Win32 Static library. I test this by adding the *.lib name to my link option in the project setting but when i try to use the class in the library in the test program, it always give me errror say "Undeclare identifier" whether i know firmly that it is nothing wrong with the declaration. I know that the linking process is ok, but what else did i miss ??
Regard,
|
|
|
|
|
Post the exact error message you're getting and if it's referring to a line in your program, that bit of code as well.
he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed)
Awasu v0.4a[^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hello,
you have to include the header file where you declared your class you want to use everywhere you plan to use that class. This is needed to make the class known to your application.
|
|
|
|
|
dear all,
i'm using Windows Xp pro with NTFS partition.
i've used LogonUser to get a token of a user and then I use the token in CreateProcessAsUser(...). I use flag LOGON32_LOGON_INTERACTIVE SO THERE IS NO NEED TO DUPLICATE THE TOKEN.
I've also set the reqd. previliges in the system.
but still when i try to execute a process, i get an error -> Access Denied (5).
I also tried to use function ImpersonateLoggedOnUser(..) (which was successful) but still I get the same Error while using function CreateProcessAsUser(...) after using ImpersonateLoggedOnUser(...) and the process is not executed.
I've even tried setting priviliges by code and manually in the OS
But still I found the same Error (error number 5).
In VB also i get the same problem.
is it a bug!!!!!!!!!!!
any ideas!!!!!!!!!
thanx,
<marquee>rishabhs<marquee>
|
|
|
|
|
plz...............................................
respond
|
|
|
|
|
I'm not even sure where to begin, I highlighted in red the section where I believe it blows up....
#import "Tester.tlb"
using namespace Tester;
class CTestDlg : public CDialog
{
DECLARE_DYNAMIC(CTestDlg);
friend class CTestDlgAutoProxy;
public:
CTestDlg(CWnd* pParent = NULL);
Tester::_Numbers *com_ptr ;
CoInitialize(NULL);
<font color="red">Tester::_NumbersPtr p(__uuidof(Tester::_Numbers));</font>
com_ptr = p;
long i = com_ptr->GetDay();
The message that pops up says: "Runtime Error! The application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information." Where does and error message like that come from?
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
Try:
Tester::_NumbersPtr p;
p.CreateInstance(__uuidof(Tester::_Numbers));
Dave
|
|
|
|
|
Nick Parker wrote:
Tester::_NumbersPtr p(__uuidof(Tester::_Numbers));
Should be
Tester::_NumbersPtr p(__uuidof(Tester::Numbers));
The constructor always takes the CLSID of the class not IID of the interface.
The mistakes made in this API make me realise that Microsoft has become big enough that it can shelter morons. If anyone working for me wrote anything this bad and tried to release it, I would kill them and display the body as a warning to the rest of the team. - Christian Graus about C# - GDI+
|
|
|
|
|
Rama Krishna wrote:
Should be
Tester::_NumbersPtr p(__uuidof(Tester::Numbers));
I tried this and it looks like this now:
CoInitialize(NULL);
Tester::_NumbersPtr p(__uuidof(Tester::Numbers));
com_ptr = p;
long i = com_ptr->GetDay();
AfxMessageBox(i);
However it throws an error in appui1.cpp . What file is this, I have never heard of it.
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
>>AfxMessageBox(i);
AfxMessageBox takes the ID of the string resource not a number. So you need to wrote code like :-
long i = com_ptr->GetDay();
char sz[32];
itoa(i, sz, 10);
AfxMessageBox(sz);
The mistakes made in this API make me realise that Microsoft has become big enough that it can shelter morons. If anyone working for me wrote anything this bad and tried to release it, I would kill them and display the body as a warning to the rest of the team. - Christian Graus about C# - GDI+
|
|
|
|