|
for your kind information i have implemented a namespace extention and its working fine... Yeah its not for faint hearted, but its quite easy for me now...
Thanx for your reply though.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
Thanks a lot!
|
|
|
|
|
I have recently decided to analyze the PurifyPlus product from Rational. As a result of installing and running the Purify against my main project, I found that due to applied service packs, I also needed to get the Platform SDK from Microsoft. The iso name btw is 2600.2096.7.PlatformSDK_xpsp2_idw.iso.
Now after applying the Platform SDK and following the directions to ensure that the correct environment is in place for Visual C++ 6.0, I compiled my project and now get the following error at the linker level:
shell32.lib(shguid.obj) : fatal error LNK1103: debugging information corrupt; recompile module
I can not find any information as yet. Any ideas?
Paul Kennedy
Father/Son/Husband/C Programmer
What else could you ask for?
|
|
|
|
|
I used to get this when trying to use the microsoft layer for unicode.
I actually tracked it down to the MSLU being built (incorrectly on MS's part) with VS 7.
See here
http://groups.google.co.uk/groups?hl=en&lr=&ie=UTF-8&threadm=5EE8080C-9886-46AA-8939-D22A2289B7E9%40microsoft.com&rnum=8&prev=/groups%3Fq%3DLNK1103%26hl%3Den%26lr%3D%26ie%3DUTF-8%26selm%3D5EE8080C-9886-46AA-8939-D22A2289B7E9%2540microsoft.com%26rnum%3D8
I'm not sure about your case though. Was it the Feb 2003 platform SDK you installed? I ask as i have a number of projects that link to that lib using that SDK and they all work. DOes it link ok on release build?
|
|
|
|
|
Hi all,
i'm facing problem with POST request to webserver.
The webserver goes into infinite wait and does not respond anything to the
client.
Get request is working fine.
sprintf(buff,"POST //cgi-bin/cgi.exe HTTP/1.1\r\nHost:
sabi\r\nTransfer-encoding: chunked\r\nContent-Type:
text/plain\r\n\r\n10\r\n1234567890123456\r\n0\r\n\r\n");
I'm using winsock for sockets .
Know that there has to be something wrong with the request packet.
Have looked a lot and could not get any sample request.
Any kind of suggestion / links will be greatly helpful.
Thanks in anticipation guys.
Rgds....
|
|
|
|
|
I suspect you need a Content-length header entry.
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
It should not be.
Because the whole idea of specifying transfer encoding chunked is that content length is not needed and size of check preceeds the actual data of chunk. ( As per RFC 2616 - section 3.6.1)
pls correct me if i'm wrong as i'm relatively new to http programming.
Rgds,
|
|
|
|
|
My mistake, you are correct.
What server are you using? Do you know it supports chunked transfer? If it does do you need to configure the server to accept it?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
maybe the packets sent back by the CGI don't arrive where they have to.
is the CGI-calling computer behind a server (on a LAN) without router ?
isn't the caller clicking the "STOP" button ?
do you have an idea of where it loops ? (breakpoints, etc...)
TOXCCT >>> GEII power
|
|
|
|
|
Have the web server installed on localhost for test purposes.
Moreover the cgi script writes a TRACE-LOG for debugging which is not TOUCHED in this case which means that the cgi is not at all invoked by the web server.
However if i send a standard POST request with content length specified it works fine.
The problem is when i'm using transfer encoding chunked in which content length header field is not specified and each data chunk is preceeded with the size of the data chunk in hex.
Its as if the server is in waiting state and is still expecting some more info.
Have looked up every where i could manage but could not find any example.
Pls help....
|
|
|
|
|
How can I get a jpeg picture's array of pixels to memory and draw it by OPGL function?Thanks a lot!
|
|
|
|
|
i assume u mean OpenGL by OPGL.
it is quite easy, you open the jpeg file, decompress it (there are a lot of articles about that on codeproject) and then you create a texture with it and put it on a 3d object, e.g. a cube, or a triange, etc.
Don't try it, just do it!
|
|
|
|
|
Hello people, i'm starting an application which will be a dialog, where i would be able to select something, then drop it somewhere else. I won't be dropping bitmaps.
For example, i'm thinking of placing a button with an line.
When i click on the button, i'd like to be able to drag a reference to the arrow, and when i release the mouse button, i'd like to get the position of the mouse and draw a line. It won't be a bitmap, as i will need to click on that area, where i released the line, so i can resize it. I will need a list of 'lines' with the position of the 'area' of each line.
I won't be using OLE, just WM_LBUTTONDOWN and WM_LBUTTONUP.
Do you have any tips on how may i start? any nice links where i could read something? i'm quite new with mfc. Is it ok to drag from a button? Any contribution will be appreciated, i'm not asking for code, but some ideas, or how could i implement them [some code ideas would be nice as well ]
Thank you very much!!
|
|
|
|
|
I suggest you look at the VC++ MFC Sample project "Scribble"
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
|
I can create and use a CHtmlEditCtrl just fine but when I try to delete it the code will not compile becuase the destructor is protected. I dont want to leak memory all over the place.
This seams basic. What am I missing?
Thanks,
Sean
|
|
|
|
|
Have you looked at Chris Maunder's Code Project article on using the control?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Yes but his article actually uses the view - CHtmlEditView - which does not have this problem. I have found no sample code that uses the CHtmlEditCtrl that can be placed in a dialog. It looks like the DHTML mapping macros will not work in a dialog either.
Thanks,
Sean
|
|
|
|
|
i want distinguish is a point is in a polygon. i kown polygon's each points's position and kown the point's position.
how can i distinguish whether the point is in the polygon or not?
|
|
|
|
|
A quick search in google will yield a whole series of algorithms.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
|
Create a region using CreatePolygonRgn and then use PtInRegion to determine whether the point is in the region. Win32 API or MFC CRgn... your choice.
onwards and upwards...
|
|
|
|
|
I'm working on a hobby war simulation game in Visual C++ .NET and am having a problem with multithreading. I don't know much about it, and am wondering if there may even be a better solution than multithreading for this problem:
The game is running in an MDI parent with multiple forms. A user wants to move units from one city to another; The Main Menu child tells the Map child that it needs the user to select a target city. I want the Main Menu to pause its code processing at that point until the user selects a city, which then is passed back to the Main Menu so it may continue processing.
The problem I am running into is this: The player selects an invalid city to move to -- I want to generate another MDI child that acts as a popup to inform them they can't move there and what their options are. When I do this (as shown in the code below) the new Popup child flashes on the screen for just a moment then disappears. I am guessing that this is because the Military_MoveThread is ending, so it closes anything initialized in the thread, but I am not really sure why it does this. I want the thread to end but the new MDI child popup to remain on the screen. I've tried running the popup as a new thread but it does exactly the same thing.
Here is basically what I have:
<br />
void InitiateMove()<br />
{<br />
ThreadStart *myThreadDelegate = new ThreadStart(this, Military_MoveThread);<br />
trd = new Thread(myThreadDelegate);<br />
trd->IsBackground = true;<br />
trd->Start();<br />
}<br />
void Military_MoveThread()<br />
{<br />
theClient->EnableMap();<br />
<br />
theMap->iTargetMode = 1;<br />
<br />
while( theMap->iTargetMode == 1 )<br />
{<br />
Thread::Sleep( 100 );<br />
}<br />
<br />
if( theClient->iTargetCity == -1 )<br />
{<br />
theClient->EnableAllForms();<br />
theMap->EnableAllCities();<br />
return;<br />
}<br />
<br />
if( theClient->PlayerOwnsCity( theClient->iTargetCity ) == false &&<br />
theClient->clientCityButtons[ theClient->iTargetCity ]->iOwner != -1 )<br />
{<br />
Popup( String::Concat( S"Master ", theClient->Name, S", that city does not belong to us!" ) );<br />
theMap->EnableAllCities();<br />
theClient->iTargetCity = -1;<br />
return;<br />
}<br />
<br />
}<br />
void Popup( String *advise )<br />
{<br />
<br />
confirmPopup->RequestConfirm( advise );<br />
}
My question is: Is there an easier way for the main menu child to wait on the map for data? If not, what do I need to do to keep the confirmPopup child from disappearing right after it appears?
Thanks,
Cyric
|
|
|
|
|
Hi guys,
This is my problem. I created a win32 dll file with a dialog box on it(created using Insert>Resource>Dialog Box) and called it using the DialogBox(..) command inside the dll.
Now I tried loading the dll file from a new application but then the dialog box doesnt pop up. lemme know as to what i'm doing wrong in here. Should I copy the .res, .rc file that was used in the dll to the directory where i am loading the dll ?
Also I tried returning a number inside the function that pops up the Dialogbox. I found that when i load the dll the number is returned but no dialog box pops up
Thanks in advance
|
|
|
|
|
Can you post the code here? This might help us
|
|
|
|