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
K

kevincwong

@kevincwong
About
Posts
39
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • add a new dll, & lib files to my project
    K kevincwong

    I am using VC6. > you will also need to give the names of the .lib files. >Or directly give the fully qualified path to the libs Can you where to do so? >In VC6 it is located in the Link tab -> Object/Library modules. I checked the Project -> MyProeject Properities -> Linker But I don't see the Ojbect/Library moudles. Am I look at the wrong place? Thanks, Kevin

    C / C++ / MFC help question lounge

  • add a new dll, & lib files to my project
    K kevincwong

    VC6

    C / C++ / MFC help question lounge

  • add a new dll, & lib files to my project
    K kevincwong

    Hi, I just bought a third party SDK that came with some DLLs & LIBs. I wanted to keep those DLLs & LIBs in my product directory. So, I added my path to Project -> MyProeject Properities -> Linker -> General -> Additional Library Directories. But I still got the link error. I probably missed some steps. Can someone tell me what else I need to do? Thanks, Kevin

    C / C++ / MFC help question lounge

  • How ActiveX works?
    K kevincwong

    Hi, I need to buy a developer kit from a third party software company. Since I'm developing my application with VC++. So, it makes sense to buy the C++ developer kit. That software company got developer kit in Jave, .Net, VB, & a C++/ActiveX demo code. I compiled and ran the C++ demo code but still a bit confused. I probably will call that company tomorrow morning to ask some questions. But I wonder, normally, how the people use ActiveX? In what situation? Is that mainly for www application? http://www.active-x.com/articles/whatis.htm Maybe someone can share his/her knowledge with me? Thanks, Kevin Kevin

    C / C++ / MFC com csharp c++ question

  • A simple tab question
    K kevincwong

    Great! I fixed it. Thanks for your help! Kevin

    C / C++ / MFC question help tutorial

  • A simple tab question
    K kevincwong

    I have a dialog with about 5 CEdit fields, CEdit1, CEdit2,..... CEdit5. Currently, when I clicked the TAB key, the cursor will jump from CEdit1 to CEdit3 instead of CEdit2. Can someone tell how to fix it? Thanks, Kevin

    C / C++ / MFC question help tutorial

  • What is #if 0
    K kevincwong

    There are many reasons to use #if 0 Actually, I do it all the time. Here is my reason. Let say I re-write some code/method/function and I think it should work. But I would like to keep the old code around. Just in case...... I know I can retrieve the old code from the source control. However, it's more convinence if I have the old code right next to the new code. Kevin

    C / C++ / MFC question

  • Capture all keyboard input inside a dialog
    K kevincwong

    Got it! Thanks, Kevin

    C / C++ / MFC help tutorial question

  • related to Socket
    K kevincwong

    Did you get any error messages? What's the errno? Kevin

    C / C++ / MFC com help question

  • Capture all keyboard input inside a dialog
    K kevincwong

    Hi James, That's what I guess with alphanumeric character, like 'A'. But it does not explain ']' (pMsg->Param == 221). The ASCII for for ']' is 93. It looks like 221 - 128 = 93. Do you know why? Thanks, Kevin

    C / C++ / MFC help tutorial question

  • Capture all keyboard input inside a dialog
    K kevincwong

    Rajesh, Great! that's exactly what I want. I know I read it from somewhere before but just can not remember how to do so. btw, when I pressed a key (for example 'a', the pMsg->wParm is 65, ']' is 221), I think the pMsg->wParm is the scancode (not ASCII code). Am I correct? Thank for you help!! Kevin

    C / C++ / MFC help tutorial question

  • Capture all keyboard input inside a dialog
    K kevincwong

    Hi, I have a dialog will get input from a 2D barcode scanner, about a couple hundred characters. I already override the PreTranslateMessage but still not sure what's best way to capture the scanner input as stdin. I think my problem is that I am not too familiar with Windows messaging. So, When I got a lot messages inside PreTranslateMessage, I don't know how to filter out & convert the data I want. Can someone give me some suggestions? Thanks, Kevin

    C / C++ / MFC help tutorial question

  • Print dialog with prntscreen
    K kevincwong

    I found the answer. StretchDIBits( hDC, // hDC 10, // DestX 10, // DestY (int) sizePrn.cx, // nDestWidth (int) sizePrn.cy, // nDestHeight 0, // SrcX 0, // SrcY sizeClient.cx, // wSrcWidth sizeClient.cy, // wSrcHeight lpDIBBits, // lpBits &bmInfo, // lpBitsInfo DIB_RGB_COLORS, // wUsage SRCCOPY); // dwROP Change sizePrn.cx, sizePrn.cy can resize the print out. Kevin

    C / C++ / MFC com graphics tutorial question

  • Print dialog with prntscreen
    K kevincwong

    Hi, I need to print the SDI dialog and found the following code http://www.codeproject.com/printing/prntscreen.asp The code worked fine but the print out image is a kind of small. Does anyone know how to change the setting to print the bitmap image a bit larger if possible? Thanks, Kevin

    C / C++ / MFC com graphics tutorial question

  • How to submit information from an application?
    K kevincwong

    Hi, I found the problem. The problem was caused by my Thunderbird, Mozilla. When I tested the same excutable on other machine with Outlook Express. Everything came out fine. Thank for your help! Kevin

    C / C++ / MFC sysadmin tutorial question

  • How to submit information from an application?
    K kevincwong

    Hi, Thanks for your suggestion. After reading http://www.codeproject.com/internet/cimapi.asp, I am able to send email from my application. However, it got a minor issue. My email body is about 10 lines with about 200 characters. I have "\r\n" to separate each line. The AfxMessageBox displayed the text correctly, 10 separate lines. But, the mail.Text ( ) concatenated my data to a huge BIG string. Do you know what caused the problem? Thanks, Kevin

    C / C++ / MFC sysadmin tutorial question

  • How to submit information from an application?
    K kevincwong

    Hi, I am working on an application that requires user to submit registration information to my company. There are a couple options for me. 1) bring up an email & pre-type all registraion information to the body but I am not sure it's doable or not. 2) create a submit button and send the information to our server but it requires some work in back end. Is there any better way to do it? If not, is that possible to pre-type the email? Can someone give me some ideas/suggestions? Thanks, Kevin

    C / C++ / MFC sysadmin tutorial question

  • bitwise operations
    K kevincwong

    666 => 1010011010 400 => 0110010000 bitwise & => 0010010000 It probably will not match 400 ( 0110010000 ). In Unix, those permission are in octet. So, you may want to try ((0666 & 0400 ) == 0400 ) If I understand your problem correctly, I probably will try different approach. You probably have 9 checkbox for all permissions. I probably will have a function to take the permission & all 9 checkbox. Inside the function. if ( permission & 0400 ) ownerRead->SetCheck ( TRUE); if ( permission & 0200 ) ownerWrite->SetCheck ( TRUE); & etc. Kevin

    C / C++ / MFC question

  • memstr
    K kevincwong

    Hi, I have a binary string. I need to search certain characters. I used to use "memstr" (obtain fist substring from string) on Unix. Is there anything similar to that available from MFC? Thanks, Kevin

    C / C++ / MFC c++ question

  • display text
    K kevincwong

    You are correct. After doing more research, I found that the CEditBox can do exactly what I wanted. I am from Unix side. So, please forgive me if my MFC lingos or knowledge are not good enough. Currently, I am working on a MFC project to do something like inventory control. I already done all backend sql search stuff. Now, I need to display the inventory information to the user in text format. For example: Item 1: something something Quantity: 20 Description: some description......... Item 2: someting else Quantity: 202 Description: some other description......... So, as I mentioned before, the CEditBox works perfectly for me. Regards, KEvin

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

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