Greeting, Can anyone give me some hints about parsing the mulitpart/form-data stream? I have a form looks something like this
tongc
Posts
-
parsing multipart/form-data -
Setting the packet priority!Hi I would like to set a packet priority so it can be it gets 1st priority over the packet of other application. I've come accross function setsockopt() of winsock 2.0 but it doesnt seem appropriate. Also in win2k it has a new concept called QoS and in this there is Differentiated Service set of API, would this be appropriate for what i want, how about if one end-point use windows 2000 and the other end use windows 98? Regard,
-
Problem with MFC create control for componentHi When i insert component like the MicrosoftBrowser, the studio automatically creates a wrapper class for the control, and in this wrapper class there is a function call: CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID) does anyone know what this does? Since i would like to implement this in pure win32api without any intervention from Microsoft Visual studio or wizard! Any constructive suggestion are highly appreciated. Regard,
-
The MFC CreateControl()Hi When i insert component like the MicrosoftBrowser, the studio automatically creates a wrapper class for the control, and in this wrapper class there is a function call: CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID) does anyone know what this does? Since i would like to implement this in pure win32api without any intervention from Microsoft Visual studio or wizard! Any constructive suggestion are highly appreciated. Regard,
-
Getting Binary From database!Hi ! I'm trying to get a binary file from the database. Hoever when i try to receive this by using Resposne.Outputstream.Write(....), it does ask the browser to download but what i received is a bunch of crap (all unrecognised character). Does anyone know what happen?
-
How to use WIN32 static library!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,
-
Weird error when reference *.lib fileHi I have a library which consists of header and source file. I created the Win32 Static Lib project in visual C++6. It then compiles ok and leaves some objects and .lib file in the Debug folder. I then created another console project and attempt to reference the x.lib in the debug folder in the Win 32 Static Lib but it gives me 102 errors say "unknown character at 0x95" or something like that. And when i double clik on the error to see where the error is in the editor, the message box pop up and say that the file is binary and can not be read. Does any one know how to solve this problem?? Ah i also forgot to mention that i even have tried to add the x.lib into the link option in the project setting! This time it reduce to 3 error but alway say "undeclared identifer" which is quite weird to me since i know how i declare it is quite correct. Regard, Cuong Tong
-
DisabledYou can prevent the CTRL+ALT+DEL and ALT+TAB key combinations from opening a task list in Windows 95, Windows 98, or Windows Me by calling the SystemParametersInfo function in the Win32 API. NOTE: This is possible only in Windows 95, Windows 98, or Windows Me.
-
code project search bar! How??/thank you
-
Random Numbersuse the rand function to return a pseudorandom integer in the range 0 to RAND_MAX. Use the srand function to seed the pseudorandom-number generator before calling rand.
-
code project search bar! How??/Hi I would like to write an Internet explorer plugin such as the search bar of code project. However I have no clue of how about doing it! Could anyone point me to the direction eg reading or any hint about that! Thanks Regard,
-
Communicate with function inside OS!Hi! In a system that has full memory protection, what are the way that allow user application to communicate with function inside the OS??? Thanks
-
Disabling interrupt to achieve mutual exclusion?Hi! Could anyone tell me why disabling interupts to achieve mutual exclusion is not acceptable on a multiprocessor sytem??? Thanks
-
Semaphore wait and signal!!!!Hi! I've encounter the following problem!
Writec pseudo code using semaphore function wait and signal to solve the following problem: A computer system has a pool of N idential printer attached. Processes that wish to print must obtain an available printer. Write two functions: int getPrinter(void); void releasePrinter(int printerID); getPrinter obtains an availble printer from the pool of N printers and return the printer number (0 to N-1) as its result. releasePrinter takes a printer number and makes it available for use by other processes.
Here is what i attempt at it #define N //number of printer; int numberOfPrinter = N; int printer[N] //array of N printer; getPrinter(void) { if numberOfPrinter > 0 Then set printer[numberOfPrinter-1] = used return numberOfPrinter-1 else Block } releasePrinter(int printerID) { numberOfPrinter++; set printer[printerID] = not used } Could you please give me any comment or any advise regarding above problem! Thanks -
a problem in memory allocationWhen i>120 i could see in the debug window this message in front of pComptStartMineure: CXX0030:expression cannot be evaluated `that means that your pointer is pointing to NULL, hence it can not evaluated the value. Normally, an attempt to access NULL pointer will give you "Access Violation" error. This dynamic memory allocation is not easy to deal with. Ideally you'll need to go step by step through each line of code and monitor your program and see what is an unexpected result.`
-
for (; !Free; ) ; ????thanks!!!!
-
for (; !Free; ) ; ????for (; !Free; ) ; Free = FALSE;
what does the for loop means! I only see for(; ; ) not the above. Thanks -
some Hex numberi've got the memory location as follow addres1: 0x00322360 addres2: 0x0032236c which one is greater! Thanks
-
for( ; ; ) ????thanks for the tip, Hugo! It's quite usefull and make so much sense :)
-
while(memory_address)great! this is the answer i need!!! ;) The while loops until anotherMemoryAddress is NULL so this equals to while(memory_address != NULL) { DoSomth(); } Regard,