|
Robert Buldoc wrote:
How can I get a thread status (wether it's suspended or not?) I looked at all Process and Thread functions and couldn't find a way on how to retrieve that information?
You could always call SuspendThread(), look at the previous suspend count, then call ResumeThread().
Or, you could lookup the thread structure (http://www.microsoft.com/mspress/books/sampchap/4354b.asp[^]) and try to query the SuspendCount value directly.
I decided to store the suspend state as a flag in my thread class.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Thanks for yoru reply!
I think I am gonna use the thread structure!
|
|
|
|
|
Robert Buldoc wrote:
I think I am gonna use the thread structure!
That way madness lies.
You have been warned.
(Let me know if you get it to work)
...cmk
Save the whales - collect the whole set
|
|
|
|
|
lol..you already scared me!!;P
I think I should use a flag also..
|
|
|
|
|
Hi,
I'm trying to save a local HTML file + images to a single MHT file. I found some C++ example code to do this here: http://www.codeguru.com/Cpp/I-N/ieprogram/comments.php/c4397/?thread=1029
However, when I ran it with a local file reference, such as "file://c:/documents.../index.html", it saves a MHT file. However, the MHT file is about 2KB. If I delete the html and png files, the MHT file shows up as empty. So the images are definetly not being pulled into the MHT files. Does the MHT Builder code only download images if they are not local?
Any comments would be appreciated.
Thanks,
Kevin
|
|
|
|
|
Hi,
I am pretty new to VC++. Can anyone please suggest some game proramming sources in the website which will be of help to me to build a project on Game programming. Hope it is feasible. Thanks for your help.
Regards
|
|
|
|
|
www.gamedev.net
You won't find anything better
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
|
i installed the Platform SDK downloaded from microsoft.com, set the directories of Visual C++. Then made an empty MFC Dialog-based Project, added
#include "basetsd.h"
#include "gdiplus.h"
in stdafx.h after all includes and before #endif and built the project. 6 errors were reported:
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'MIDL_INTERFACE' :
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2440: 'initializing' :
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2146:
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2501: 'IImageBytes' :
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2239:
F:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\GdiplusImaging.h(67) : error C2059:
(I removed the rest of error information of each line because i am using a Japanese version of Visual C++ and it was difficult to display those characters)
<font=sans-serif>|-|3llo Wo|2ld
|
|
|
|
|
By the way, i had added gdiplus.lib to the project
<font=sans-serif>|-|3llo Wo|2ld
|
|
|
|
|
Anybody that can help me?
<font=sans-serif>|-|3llo Wo|2ld
|
|
|
|
|
I'm so confused it's not even funny...I swear this probl;em is unsolvable...
jk
Anyways...here it is...
I have three integer indexes stored in an associative array
arr["MONTH"] = 12;
arr["YEAR"] = 3;
arr["DAY"] = 0;
I need to some how sort these indexes now, but sorting is not an option...
I need to basically convert each index value into it's element index inside the array...
Do I make sense???
The numbers above would become:
arr["MONTH"] = 2;
arr["YEAR"] = 1;
arr["DAY"] = 0;
Each element may be any number, except for the same as any other...there will never be 2 10's, etc...
Here is what i've tried to use thus far, but it makes no sense...
var max1 = Math.max(this.m_arrIndex['MONTH'], this.m_arrIndex['YEAR']);
var max2 = Math.max(this.m_arrIndex['DAY'], this.m_arrIndex['YEAR']);
var max3 = Math.max(this.m_arrIndex['DAY'], this.m_arrIndex['MONTH']);
Remember sorting the array is out of the question...
Anyone care to shed some light on this subject for me...possible solve it for me
It's really driving me nutts...
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I've managed to get an adhoc hack working, but it's not very elegant...
No answer is need now, unless you know of some short and sweet approach...
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Can anybody tell me how to get SCSI Hard disk's serial number. I got for IDE Hard disk's but not getting for SCSI HDD.
So please help me for the same.
Thanks in advanced
|
|
|
|
|
|
Hi,
I want to simulate some printers by using their MIBs.I'm planning to use Agent++ created by HP. Is there any better way of implementing SNMP agents? Please tell me the best technology used to develop SNMP agents. Cross-platform compatibility is an issue. So I have no idea of using WinSNMP.
Thanks,
Dipeka
Dipeka.A.J
|
|
|
|
|
Hi all:
Does anyone knows how's the files order appearing after the DOS command "dir" the way it is, it depending on what? How can I specify that order with my intention through coding!
thanks
|
|
|
|
|
again ?
dir list files alphabetically by default.
In your command window, type "help dir" to see the different switch that can be used to sort the list of files.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi, buddies.
I used own-draw control here for commercial use. I fear about License problem. Any one can give me a tip?
please contact:
max_xiayi@hotmail.com
|
|
|
|
|
|
hello
I search effect audio in C++:
- echo
- reverberation
- chorus
- flanger
- delay
- ....
I'm interseting if you know where I can find all this.
Thank you very much
|
|
|
|
|
|
Hello
Yes. I already tried this. The problem is that it doesn't work. The project doesn't compile. There are erreur.
- error C2146: syntax error : missing ';' before identifier 'dwReserved1'
- error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
- error C2501: 'dwReserved1' : missing storage-class or type specifiers
- error C2146: syntax error : missing ';' before identifier 'dwReserved2'
- error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
- error C2501: 'dwReserved2' : missing storage-class or type specifiers
- fatal error C1189: #error : "The sample framework requires a Unicode build. If you are using Microsoft Visual C++ .NET, under the General tab of the project properties change th
#ifndef UNICODE
#error "The sample framework requires a Unicode build. If you are using Microsoft Visual C++ .NET, under the General tab of the project properties change the Character Set to 'Use Unicode Character Set'."
#endif
May be a library is missing, but I don't know.
thank you
|
|
|
|
|
Maybe I'm missing something, but it looks to me like you've just answered your own question. DirectX 9 (according to a quick google search) requires Unicode builds. Either set the project as a Unicode build in Visual Studio like the 'fatal error' is trying to tell you to do, or just #define UNICODE at the top of your project somewhere.
Marcus Spitzmiller
"Why must life be so hard? Why must I fail at every attempt at masonry?" - Homer
|
|
|
|