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
V

vtalau

@vtalau
About
Posts
51
Topics
41
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Press a key using virtual key with SendInput
    V vtalau

    I do an example to emulate keyboard with SendInput. Here is the code to press "a" with "dwFlags = KEYEVENTF_UNICODE". Code: INPUT inp[2]; memset(inp,0,2*sizeof(INPUT)); inp[0].type = INPUT_KEYBOARD; inp[0].ki.dwFlags = KEYEVENTF_UNICODE ; inp[0].ki.wScan = "a"; inp[1] = inp[0]; inp[1].ki.dwFlags |= KEYEVENTF_KEYUP; SendInput(2, inp, sizeof(INPUT)); // Press "a" Do you know how to press "a" with dwFlags = 0 and ki.wVk = "virtual key of a" ? Thanks and regards.

    ATL / WTL / STL tutorial question

  • get left/top of a Frame
    V vtalau

    hi all, I have a trouble with JavaScript, I want to get location (left, top) of a Frame (a page has three frames). I have tried with getting Document of the Frame var body = DocFrame.getElementByTagname('body')[0] var left = body.offsetLeft however, it always return 0. I'm very happy if you can point me to the answer thanks, lvthanh

    Web Development javascript

  • VB6 call .net Dll
    V vtalau

    I wrote a dll by C#, and the issue is that I don't know how to call this dll from vb6. Thank all.

    COM csharp help tutorial

  • LPCSTR
    V vtalau

    I have a difficulty... when I want to make a LPCSTR variable, I do this: LPCSTR test = TEXT ("hello"); Now I want to make a LPCSTR,including "hello" + name of a persion, which changes every time. I can't do below: CString name = "John"; LPCSTR test = TEXT ("hello" + name); or CString name = "John"; name = "hello" + name LPCSTR test = TEXT (name); please tell me how to do to achieve that result, or show me some pages related to changes of LPCSTR.

    C / C++ / MFC tutorial

  • access controls
    V vtalau

    I have created some applications using a lot of techniques to access the properties of the control in a form on screen, such as: Accessibility for Windows controls corperating with some supported API functions. However, for MathLab application, which is written by the Java language, it doesn't operate. Who knows, please tell me the way to solve this issue. Thanks.

    COM java json help

  • morris pratt
    V vtalau

    Who knows the link to source code of matching string , such as: morris pratt, Brute force...thanks.

    Managed C++/CLI

  • sending message Ctrl + C
    V vtalau

    I have a trouble like below description : My program has a dll file and a server application in the mydll.dll, I want to send a message to the server application. The message is the keyboard message, for example, WM_CHAR. I want to send a command of copying data in the server application. So, I need sending the union keys of Ctrl + C, to copy the selected text of the server application to the clipboard. However, I don't know how to do that. Please, help me, point me to some pages or give me some intruction. Thanks a lot.

    C / C++ / MFC tutorial sysadmin help

  • wParam referring to A STRING...
    V vtalau

    I have a trouble like below description : My program has a dll file and a server application in the mydll.dll, I want to send a message to the server application. The message has the wParam referring to a string. I wrote my code : CString speak1; .... LPTSTR str = (LPTSTR)malloc((speak1.GetLength()+1) * sizeof(TCHAR)); ....//copy the data of the "speak1" to the "str" ::PostMessage(hMainWindow,WM_USER+1,(WPARAM)str,str.GetLength()+1); free(str) ; in my server application, I try to get the address of the string from the wParam. However, I can't get the content. Please, help me, point me to some pages or give me some intruction. Thanks a lot.

    C / C++ / MFC sysadmin help

  • function pointer ,,,easy but not simple
    V vtalau

    I have a problem with using function poiter. My program has two parts: part 1: mydll.dll typedef BOOL (*SpeakFunc)(const CString s); #define DLL_EXPORT __declspec(dllexport) BOOL DLL_EXPORT Init(HWND hwnd,SpeakFunc func) { ... } part 2: adding the mydll.lib of the part 1 into the project of the part 2 in the test.cpp file of the "Test" class typedef BOOL (*SpeakFunc)(const CString str); extern BOOL Init(HWND hwnd,SpeakFunc func); BOOL CTest::Speak(const CString) { ... } void CTest::TestMethod() { ... Init (NULL,&CTest::Speak) ; // the compiler notices an error here ... } The error message like below: "error C2440: 'initializing' : cannot convert from 'int (__thiscall CTest::*)(const class CString)' to 'int (__cdecl *)(const class CString)' There is no context in which this conversion is possible" please help me...Thanks a lot.

    C / C++ / MFC help c++

  • COM like MS.Equation in MS.Word
    V vtalau

    I have written a COM add-in for MS.Word in MFC. I can get the content of a document, and control ms.word's document successfully. However, I can't do functions as ms.Equation 3.0 does, such as adding a mathematical symbol. I don't know how to do that, how the ms.equation does as well as what ms.equation solves in detail. I'm in dark. Would you like to give me some advice, or point me some webpages. Thanks...

    C / C++ / MFC c++ com tutorial

  • COM like MS.Equation in MS.Word
    V vtalau

    I have written a COM add-in for MS.Word in MFC. I can get the content of a document, and control ms.word's document successfully. However, I can't do functions as ms.Equation 3.0 does, such as adding a mathematical symbol. I don't know how to do that, how the ms.equation does as well as what ms.equation solves in detail. I'm in dark. Would you like to give me some advice, or point me some webpages. Thanks...

    COM c++ com tutorial

  • Get caption of menu item of MS.Word
    V vtalau

    would you like to give me a small example code to do that, please?. I'm a student, I'm fond of Win32, I'm trying to do that.

    C / C++ / MFC json help tutorial

  • Get caption of menu item of MS.Word
    V vtalau

    would you like to give me the pages which have information of the Active Accessibility APIs in detail, please?. I ever searched by Google with the key word of "Accessibility API", but I can find nothing related to my problems.

    C / C++ / MFC json help tutorial

  • Get caption of menu item of MS.Word
    V vtalau

    I have a trouble of getting the caption of a menu item when user use arrow key up/down to move the light on the menu. For example, with NotePade, I can hook WM_SELECTMENU to see the handle of a menu. So, I can use the API function "GetMenuString" to get the caption. However, with MS.Word, the menu is not the menu of the windows's system, so I can't get the caption of menu item by the above way. The menu class name used in MS.Word is "MsoCommandBar", I used Spy++ to see the messages related to this class. However, I can't get anything to solve my trouble. I'm in dark. Please, help me. Thanks a lot..

    C / C++ / MFC json help tutorial

  • Catch the text of the Window Items
    V vtalau

    When I move the mouse on the menu bar.For example ,the Help button ,how can I get the text"Help" of the button in MFC?

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

  • capture all packets
    V vtalau

    The demo attached to the article you sent me doesn't operate. I can't hook a api function of a dll successfully. By any way, thank you so much for widening my knownledge.

    C / C++ / MFC json help tutorial

  • Export a class of a dll
    V vtalau

    My problem is that I want to export a MFC class inside a DLL. Normally, We only export a function of a DLL. Now, I want to export a class, but I don't know. Would you tell me this technique or point me to the specific websites.

    C / C++ / MFC c++ help

  • capture all packets
    V vtalau

    My problem is that I want to capture all packets which are sent to or received by my computer. However, I don't know how to do that if I don't use WinPcap or Ethereal...I just use the API functions of windows. Would you tell me some instructions about how to do that or point me to some specific websites that show me clearly about the technique. thanks

    C / C++ / MFC json help tutorial

  • Cell phone
    V vtalau

    I have a big problem. I'm using to create an example of Sending file to a cellphone,Nokia, through an UKD5 cable. However, my program can't recognize the model of the cellphone automatically, which is a problem. Besides, another problem is that I don't know how to send file to the cellphone, how to define the root folder of the cellphone. I'm in dark... Thanks a lot. -- modified at 23:49 Friday 18th November, 2005

    Visual Basic tutorial help

  • help me...html table
    V vtalau

    My website have a table of HTML control, which have a lot of cells. The number of cells,however, is not known before. Each cell has two statements (or value) which is 0 or 1. The prolem is that I don't know how to get the values of the cells on the server-side.

    ASP.NET html sysadmin help tutorial
  • Login

  • Don't have an account? Register

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