|
Yes, but I must use the ATL COM!
And without ATL? An application .exe that write a cookie.
No asp, php, cgi, perl....
|
|
|
|
|
black976 wrote:
...without ATL...
Yes, but I must use the ATL COM!
These two statements contradict each other.
Did you even look at the code in the MSDN article Q241492, specifically step 6? That's C++ code that can be used with or without ATL.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Excuse me. I don't understand...
http://support.microsoft.com/default.aspx?scid=kb;EN-US;240191
this article shows "HOWTO: Read Cookies Using ASP and Visual C++" Ok?
To create a indipendent .exe without dll?
Thank you very much.
|
|
|
|
|
Create a new EXE using the code in step 6. But if you aren't going to be using the code on an IIS machine, it's pretty pointless.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
When I write a net program, I use CSocket class to communicate with the serve. but after connected, i can't find a way to identify whether the server is still connecting. who can help me, please.
|
|
|
|
|
when you recv() from your socket, 0 is the return value for "the other part closed the connexion"
TOXCCT >>> GEII power
|
|
|
|
|
I have converted an old Visual C++ 6.0 into a Visual Net project.
After some reprogramming the program works fine when it is
beeing started from inside .NET (Ctrl + F5)
However when I try to start it using the exe file created by
.NET it will not start. The exe tries to start and uses almost
100% of the available CPU power, but then it only hangs and
the GUI never appears.
I tried to start the exe files on several different computers
and the same error occurs on all of them.
Anyone who have had this problem and know how to solve it?
/Abram
|
|
|
|
|
Hi everybody,
i need to import a library file(winmm.lib) into my project using VC++.NET. The way to do that is so different from VC++ 6.0. Does anyone know how to do?
Thanks in advance.
|
|
|
|
|
how about
#pragma comment(lib, "winmm.lib") ?
that should work on both 6.0 and .NET
We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve
|
|
|
|
|
Thanks for your reply, Hendrik, but it didnt work.
In VC6.0, i can import it in ProjectSetting\Link Tab, but in .NET - hix, cannot
|
|
|
|
|
you need to announce the whole path to your library file inside the pragma comment instruction ...
#pragma comment(lib, "path_to_lib/libname.lib")
We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve
|
|
|
|
|
In Solution Explorer (left hand side widow). Clik properties/linker/additional Library directcories/ (point to directory where your lib is)
|
|
|
|
|
yes, but when do that, we've just showed VC++ where to find the library. Where do we put the library name?
|
|
|
|
|
There is no need to write your lib name in project settings. The easy way is to just point to the directory the .lib file is stored or as already mentioned, like normaly you do with .h file ie. #include "test.h" with lib you write : #pragma comment (lib, "test.lib") wherever you use your library. thats it.
Make sure you compile your libraries in release mode when creating the .lib
Hope this helps )
|
|
|
|
|
hi all,
I am trying to open the word file in My ActiveX control, for which Internet Explorer is a Container. I am using OLE apis eg:OleLoad().
When i exectute the sample HTML the IE shows two window one for my activeX control(always on top) and behind that the Word Window, with file opened. (for testing i have hard coded the path to word file)
I don;t want like this, i want the word should be open in the My ActiveX control, How do I acheive the same.?
I guess these is because I am passing the wrong IOleClientsite pointer in OLELoad() function.
Thanks in Advance
Abhishake
|
|
|
|
|
I got an application running on a client with low privilege. The application shall execute another program that needs administrator privilege to work appropriate. Is it possible to logon a privileged user with the LogonUser() function and then make a cal to CreateProcessAsUser() to execute the program with enough privilege? Do I also have to make a cal to LoadUserProfile(), and/or ImpersonateLoggedOnUser() before calling CreateProcessAsUser()??? Do I have to load any desktop or window station or some of that stuff?
I have done lots of reading on MSDN and coding, but with no result.
Is there somebody that can help me with this?
Rickard Israelsson
|
|
|
|
|
LogonUser in Windows 2000 requires that you have the Trusted Computing Base privilege, which by default means that only processes running as LocalSystem (also shown as SYSTEM) get to call it.
Windows XP and Server 2003 no longer require this privilege; however, you still need privileges typically only granted to Administrators and to SYSTEM in order to call CreateProcessAsUser .
Instead, I suggest using CreateProcessWithLogonW . This function communicates with the RunAs service, which has the necessary privileges. The command line runas tool is effectively just a wrapper around CreateProcessWithLogonW .
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Hello everybody,
I inserted a static control into dialog box in dialog editor. I set it's styles to: Border, Center vertical. But when I run program or tested dialog by Layout -> Test command, the static displayed with border and sunken styles (that mean, it include WS_BORDER and SS_SUNKEN styles thought I did not).
I am using Visual C++ 6 SP5.
Why that? How can I fix it?
Thanks for reading.
|
|
|
|
|
What you are seeing is the 3D effect, not the SS_SUNKEN style.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Yes, But how can I remove that effect?
Thanks
|
|
|
|
|
Don't call Enable3dControls() (or Enable3dControlsStatic() ).
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
no,the style is still center vetical and border,border and sunken are different ,you can try to compare their effect,you only feel it look like sunken .
|
|
|
|
|
How can I consume a managed dll such as a dll that created by C# in unmanaged code like a MFC project?
|
|
|
|
|
|
I have matrixes having great array size.
i.e. float A[1000][1000][10];
Is it possible to open such a great matrix and how? Also, I would be pleased to know the maximum possible array size in C++ Builder. Thanks in advance to those who help?
|
|
|
|