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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
N

N Q H

@N Q H
About
Posts
21
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to deny accessing from OleDb Provider when Excel is opening?
    N N Q H

    this's just look like when you use

    File.OpenRead(filename)

    error will be returned when the file is opening. In my case, if the file is still opening and user can modify the content while I am trying to obtain data. That's bad isn't it?

    [N][Q][H]

    Database help tutorial question

  • How to deny accessing from OleDb Provider when Excel is opening?
    N N Q H

    Hi all I am using Microsoft.Jet.OleDb.4.0 provider to obtaint data from Excel files. Here's the connection string and it works properly:

    string conn = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=source.xls;Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\"";

    The problem is that I want whenever excel file was opened or to be using by another programs, OleDb provider wouldn't access to the excel files. I guess that I have to set some properties on Extened Properties. I have googled alot but it seems nothing about it. anybody help me! thanks

    [N][Q][H]

    Database help tutorial question

  • How to catch WM_CLOSE by using hook
    N N Q H

    Because this is a global hook which will monitor all message before they really reach to target window. So I think It doesn't need inject the dll to the target window. But I will try. I took a round from google and know that many people have the same problem with me when they try to catch the WM_CLOSE. But I still cannot find the solution.

    [N][Q][H]

    C / C++ / MFC help tutorial

  • How to catch WM_CLOSE by using hook
    N N Q H

    ok, KeyboardProc must be renamed to fnHookProc. But this is not the cause. This just a mistake when I copy from my code.

    LRESULT CALLBACK LRESULT CALLBACK fnHookProc(int nCode,WPARAM wParam, LPARAM lParam)
    {
    PCWPSTRUCT msg = (PCWPSTRUCT)lParam;

       if(msg->message == WM\_CLOSE )
       {
    	  //do somethings here
    	
       }	
       return CallNextHookEx(\_hHook,nCode,wParam, lParam);
    

    }

    [N][Q][H]

    C / C++ / MFC help tutorial

  • How to catch WM_CLOSE by using hook
    N N Q H

    Hi all, I have written a program which can monitor a specific program when it was closed.I used hook to do it and everything seem be ok but the problem is that I cannot hook WM_CLOSE message. I have tried to use WH_GETMESSAGE, WH_CBT, WH_CALLWNDPROC. But all of them seem not work properly! here is my code:

    hHook = SetWindowsHookEx(WH_CALLWNDPROC,fnHookProc,hInstDLL,tid);

    DLLEXPORT LRESULT CALLBACK KeyboardProc(int nCode,WPARAM wParam, LPARAM lParam)
    {

    LPMSG msg = (LPMSG)lParam;
    
       if(msg->message == WM\_CLOSE )
       {
    	  //do somethings here
    	
       }
    
       return CallNextHookEx(\_hHook,nCode,wParam, lParam);
    

    }

    anybody help me. thanks

    [N][Q][H]

    C / C++ / MFC help tutorial

  • How to prevent user click to the checkbox on a listview control
    N N Q H

    Actually, I am trying to send message to a listview which does not allow me click to the checkbox. This is a trainning for a online game. Since character'level less than 10 I can click on the checkbox and this trainning will train my character. but if character'level greater than 10. The trainner will not allow me click to the checkbox. In the first case(level < 10). I have tried send message to click the first row items. It works properly.

    ListView_SetCheckState(hwnd,0,true);

    But when my character'level reachs to 11. The list view seems be blocked(Notice that listview still be actived). In this case, the code does not work. I cannot only click to the checkbox but also using ListView_SetCheckState. I guest that I need to send a message to update the property of listview before I can use ListView_SetCheckState. But what needs to be updated? Plz help me! thanks

    [N][Q][H]

    .NET (Core and Framework) help tutorial

  • How to prevent user click to the checkbox on a listview control
    N N Q H

    Hi all How to prevent user check on checkbox of a listview control. The listview control contains many of row items which can be selected by clicking on the checkbox. But now I want to prevent user click on the checkbox. I will check them by code in program. And the listview control will be still active. That means user still selects one row item but just cannot click on the checkbox. Anybody help me thanks in advanced!

    [N][Q][H]

    .NET (Core and Framework) help tutorial

  • when will my article get approved?
    N N Q H

    Good job I also intend to post a new article. That' good!

    [N][Q][H]

    Article Writing wpf csharp com help question

  • alert error in sign-up form
    N N Q H

    Hi all I have a form. In this form, there's a text box and a submit button. The problem is that I have to check what user puts to the text box before he can submit form. If the text box is blank I want to alert a error message(not a alert message) to the form. I intend to use a tag to block a error message. The code as bellow: function f_check() { //how to change the attribute <b>display:none</b> to <b>display:block</b> to show the message } Required Information Thanks in advanced [N][Q][H]

    Web Development

  • adding a item to listbox by javascript [modified]
    N N Q H

    thank you very much, it works properly.

    Nguyen Quang Huy

    Web Development

  • adding a item to listbox by javascript [modified]
    N N Q H

    Hi, I have a form, and in this form, there's a button and a listbox. The question is how to add a item to the listbox using javascript when the user clicks on the button. This is my thinking but it doesn't work.

    var lb = document.getElementById('mylist');
    lb.options.....(what will be here?) :doh:

    Thanks in advance

    Nguyen Quang Huy

    modified on Wednesday, April 1, 2009 4:16 AM

    Web Development

  • How to publish the application base on .NET FrameWork
    N N Q H

    I don't know any tools like that :confused:. Can u suggest some keywords thanks

    mixiaojion

    IT & Infrastructure question csharp dotnet visual-studio tutorial

  • How to publish the application base on .NET FrameWork
    N N Q H

    Hi everybody! After I finished my application (use VS 2005). I want to bring the .exe file in the Release folder to another computer to run it. But it doesn't work properly. How can i run the application that doesn't need .NET FrameWork. Everybody want to use my application always need install .NET FrameWork,don't they? sorry about my English thanks in advanced.

    mixiaojion

    IT & Infrastructure question csharp dotnet visual-studio tutorial

  • download paper from IEEE [modified]
    N N Q H

    Hi all, My name is Nguyen I am a IT student of National University of Natural Sciences in VietNam I am going to do my thesis about "tracking object". I need some papers from IEEE but I can not get them because I don't have account This is the title of papers that I want to get: [1] L. Li, W. M. Huang, T. Qi, “Statistical modeling of complex backgrounds for foreground object detection”, IEEE Transaction on Image Processing, Vol 13, 2004 [2] R. Cucchiara, M. Piccardi, A. Prati, “Detecting Moving Objects, Ghosts, and Shadows in Video Streams”, IEEE Transaction on Pattern Analysis and Machine Intelligent, 2003. Everybody can help me? Here is my email address : huynq9@gmail.com Thanks in advanced.:rose::rose::rose:

    mixiaojion

    IT & Infrastructure com regex help question

  • Run application in window mode
    N N Q H

    Hello every body! I have played a game(GTA Vice City). This game can't play in window mode,so I decided to write a small application that makes the game will be showed in window mode. I guess that I must do something like this : - Get the handle of the game ( Ok, It's not a problem) - Send a message to game ( uhm,:confused: ) How can I do that? thank you very much!

    huynq

    IT & Infrastructure question game-dev help

  • sending message to other process
    N N Q H

    Hi everybody,:) I am playing a game which used keyboard to control my character. I must combine some keys at one time to have a special kick.For example(A+Space+Enter) So, I decided to write an Application which can support for playing this game.When I call attack() funtion, the character will have a special kick automatically. To solve this problem, I tried to send message to game I used PostMessage API function : public void SendKeyDown(int key) { PostMessage(handle,WM_KEYDOWN,key,IntPtr.Zero); } The trouble is my game was not receive this message(Some games received but some games din't :confused:) I tried other ways, use SendMessage,Keybd_Event but all of them are not work. Could you give me some help? thank you very much!

    mixiaojion

    IT & Infrastructure help game-dev json tutorial question

  • analysis dll [modified]
    N N Q H

    Hi everybody! I have a dll and I can read some function of this dll ,but I can get the parameter of this function have any program can get the prototype of function in this dll ? thanks and regards!:rose: -- modified at 10:36 Thursday 16th August, 2007

    mixiaojion

    IT & Infrastructure question

  • visual assist for code warrior?
    N N Q H

    Hi all, I am working with CodeWarriorIDE to make an application for Palm,but CodeWarriorIDE is terrible for developing. Is there any plug-in for CodeWarriorIDE to make convenience(like visual assist for VS C++) ? :confused: thanks for your help! regards.:rose:

    mixiaojion

    IT & Infrastructure c++ visual-studio help question

  • autoplay utility for online game
    N N Q H

    Hi , first , thanks for your help! I find the exact part of memory which the game uses, then I can read some values. So , I can know the health point , mana of my character But how can I control my character , ex : auto attack monster, auto run... I think I must send a package or a message to server ? any suggestion? :confused:

    mixiaojion

    IT & Infrastructure question game-dev tools

  • wirte an autoplay utility for online game
    N N Q H

    hello everybody! my english is not good .Don't be afraid ;P I 've played an online game ,and i downloaded a small utility to autoplay game I just turn on autoplay utility ,my character will auto fight...(can save more time) and when character have enough experience ,he will up to a high level So , with this utility my character can play without me. My question is : how can write an utility as autoplay utility? have any document about this ? thanks, TB : The game i am played is jxonline ( a famous online game of china) I have source code of autoplay utility but i don't know how can do that? anybody can help me? sorry againt for my english :(

    mixiaojion

    Article Writing question game-dev tools help
  • Login

  • Don't have an account? Register

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