|
I'm fed up with this newbie sh*t... oh please internet, show me how to code!
IT'S NOT VIRTUAL C++, IT'S VISUAL C++!!!
go away if you don't know anything about programming! good bye!
Don't try it, just do it!
|
|
|
|
|
<rant>
Unfortunetaly for you, you're my luck winner in the "pick on someone who has asked a homework question in the forum" contest.
OK.. first off: it's VISUAL c++. Secondly, why the hell is the thread called "Direct x"? Thirdly, have you done ANY kind of searching on your own on this topic? Maybe used Google? Perhaps, before you come here hoping that someone will write your homework for you, you actually go out and try to something on your own? Fouthly, i think it's same to assume that you have not written any code at all. Fifthly, why not just ask us to mow your lawn and take out your garbage for you while you're at it?
Now, after you have done some searching, some coding, and some debugging of your own, and you STILL have trouble getting something to work, maybe *then* come here and say "i'm not sure what i need to be doing here, can someone point me in the right direction?". (don't make it a bug-hunt either: people hate that).
</rant>
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know...
[Nitron]
|
|
|
|
|
6th: people hate it, when some1 is just registering on CP, to exploit the forums and ask his silly questions! (he registered less than a month before and this is his first post)
THIS IS A COMMUNITY, NOT A FREE INFORMATION SERVICE CENTER!
Don't try it, just do it!
|
|
|
|
|
as tested, if creating name-less event - CreateEvent(0,0,0,0) - in both client and server sides (2 applications in same PC), when client SetEvent, server side can not receive the event.
my Q is:
why use name-less event and how does it work (in which case)?
thx
includeh10
|
|
|
|
|
Typically you use an unnamed event to communicate between two threads in the same process. In this case, you only call CreateEvent once, storing the event handle in some well known location.
You can also use DuplicateHandle to open a new handle to a handle you do know about that lives in another process. You might use some form of interprocess communications (window messaging, shared memory, RPC) to tell one process about the other process's event handle.
However, you can never reopen an existing unnamed event object using CreateEvent - you always get a new one for each call.
|
|
|
|
|
a handle is only valid in the process context, which created it!
so there are 2 ways to handle that.
send the app, which didn't create the event the handle, and use duplicatehandle, or give the event a name and let the other app open it!
Don't try it, just do it!
|
|
|
|
|
I'm trying to creat a new thread so I can call a function that has no user interaction and just processes some files. The process takes a long time so I want to use a thread so I can update its status on the main dialog window.
I tried AFXBeginThreat(func.cpp) nada!
Any help or direction much appriciated!
Thanks,
Jim
|
|
|
|
|
or just use CreateThread() function.
search the function in samples of VC CD, there are lots examples there and very easy to be used.
includeh10
|
|
|
|
|
Or, in fact, don't.
CreateThread does not set up the C runtime library correctly. You may get away with it in a project that uses the DLL version of the CRT, because the CRT DLL's DllMain does mostly sort it out.
If you're not using MFC, create a new thread with _beginthreadex . If you are using MFC, use AfxBeginThread , because again, some initialisation is required for the new thread.
|
|
|
|
|
For a good article read here![^]
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
jimNLX wrote:
I tried AFXBeginThreat(func.cpp) nada!
Threatening a function is no way to get it to behave! The first parameter to AfxBeginThread() is not a filename, but a controlling function for the thread. It has a signature of:
UINT MyThreadProc( LPVOID pParam );
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
hi,
my isp has a dtl (data transfer limit) so i would like to write an app that monitors my adsl connection.There is a checksite but it is pretty annoying you have to login each time you wanna check that.And there is no "remember me" checkbox
however i got no idea howto this what i mean is
get my download speed
get my upload speed
get the amount of sended/received bytes
i know the iphelper is the solution but i can't figure out howto get what i want :s
does anybody know a semilair opensource project please to learn from please ? that would be great
|
|
|
|
|
get a modern online counter
Don't try it, just do it!
|
|
|
|
|
Hi guys
Is there an easy way to export data in a List Control to Excel?
Talking about to export to excel, Is there another easy way to export any data in my app (supose data are in an array) to excel?
Best Regards
Doc
|
|
|
|
|
For very simple tables without special formatting I use CSV. CSV is a very simple database format which can be opened by Excel. All values are enclosed by "" and separated by commas. For a more detailed description see http://www.wotsit.org[^] and search for CSV.
Hope that helps
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
In addition to Dominik's suggestion, you might also want to look at Excel Automation.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
HI all
i am currently using visual studio .net 2003
and have installed office 2003 pro on my machine this morning
now though when ever i create a new project or try to view an existing
project, i am unable to access my resource view
the is a red exclamation mark displayed saying "Opened in another editor"
and it wont allow me to view any of my dialogs, or to add any resouces on, or to view them
does ne1 have ne ideas i dont know how to get my resoucre view back
thanks
si
|
|
|
|
|
heyho, i need some1 to tell me how to code and add custom task bar toolbars... does someone know any source of information about that?
thx
Don't try it, just do it!
|
|
|
|
|
|
thx for the quick answer, it's very useful for my software!
Don't try it, just do it!
|
|
|
|
|
Can someone please guide me to some avi programming tutorials, articles. Reading, playing, playing certain parts of the avi, play by frames etc.
Thank you!
|
|
|
|
|
|
hello,
you can open avi's, edit them and play them frame by frame with visual c++ 6.0....i tried it once and opened a porn or something in there and played it frame by frame.
theres a tool thats included in visual studio called "AVI Editor".
|
|
|
|
|
Hello,
I'm developing a program that sets the SAMBA passwords in a LDAP-directory. I'm now wondering if there are some classes in MFC (Or any other c++ class) that can make these hashes.
I've been checking out the mkntpwd, and I want a similar class that does the same thing:
$ mkntpwd password
E52CAC67419A9A224A3B108F3FA6CB6D:8846F7EAEE8FB117AD06BDD830B7586C
(Lanmanager:NT)
..
Like (something simple like this)
CLanmangerPassword a("cleartextpassword");
CString sLanmgrpwd = a.GetHash();
|
|
|
|
|
i've never heard about such a class!
Don't try it, just do it!
|
|
|
|