Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tongc

@tongc
About
Posts
91
Topics
45
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • parsing multipart/form-data
    T tongc

    Greeting, Can anyone give me some hints about parsing the mulitpart/form-data stream? I have a form looks something like this

    C# json question

  • Setting the packet priority!
    T tongc

    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,

    C / C++ / MFC json question

  • Problem with MFC create control for component
    T tongc

    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,

    C / C++ / MFC csharp c++ visual-studio help question

  • The MFC CreateControl()
    T tongc

    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,

    C / C++ / MFC csharp c++ visual-studio question

  • Getting Binary From database!
    T tongc

    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?

    ASP.NET database question

  • How to use WIN32 static library!
    T tongc

    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,

    C / C++ / MFC tutorial question

  • Weird error when reference *.lib file
    T tongc

    Hi 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

    C / C++ / MFC c++ help debugging tutorial question

  • Disabled
    T tongc

    You 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.

    C / C++ / MFC question

  • code project search bar! How??/
    T tongc

    thank you

    C / C++ / MFC question

  • Random Numbers
    T tongc

    use 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.

    C / C++ / MFC help tutorial question lounge

  • code project search bar! How??/
    T tongc

    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,

    C / C++ / MFC question

  • Communicate with function inside OS!
    T tongc

    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

    C / C++ / MFC performance question

  • Disabling interrupt to achieve mutual exclusion?
    T tongc

    Hi! Could anyone tell me why disabling interupts to achieve mutual exclusion is not acceptable on a multiprocessor sytem??? Thanks

    C / C++ / MFC question

  • Semaphore wait and signal!!!!
    T tongc

    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

    C / C++ / MFC data-structures help

  • a problem in memory allocation
    T tongc

    When 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.`

    C / C++ / MFC help debugging performance question

  • for (; !Free; ) ; ????
    T tongc

    thanks!!!!

    C / C++ / MFC question

  • for (; !Free; ) ; ????
    T tongc

    for (; !Free; ) ; Free = FALSE; what does the for loop means! I only see for(; ; ) not the above. Thanks

    C / C++ / MFC question

  • some Hex number
    T tongc

    i've got the memory location as follow addres1: 0x00322360 addres2: 0x0032236c which one is greater! Thanks

    C / C++ / MFC performance

  • for( ; ; ) ????
    T tongc

    thanks for the tip, Hugo! It's quite usefull and make so much sense :)

    C / C++ / MFC question

  • while(memory_address)
    T tongc

    great! this is the answer i need!!! ;) The while loops until anotherMemoryAddress is NULL so this equals to while(memory_address != NULL) { DoSomth(); } Regard,

    C / C++ / MFC performance
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups