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
A

aurelcly

@aurelcly
About
Posts
11
Topics
10
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Inline Assembly with Visual C++ 2008
    A aurelcly

    Good Afternoon I have an compilation error in my code with inline assembly.I want to get IVT(Interrupt Vector Table)Address using VC++ 2008 I have "Illegal 16 bits instruction" with line MOV AX,ES:[BX]. Can you help me please. #define WORD unsigned short WORD address; __asm { push ES MOV AX,0 MOV ES,AX MOV BX,address MOV AX,ES:[BX] // Compilation Error } Thank you.

    C / C++ / MFC c++ help graphics

  • socket
    A aurelcly

    I have a small problem to send a collection or array via socket as we know we can only send byte. This is a small example of what I wanna do but it is not work:

    List list = new List();
    list.Add("item1");
    list.Add("item1");
    sockt.Send(list);

    I try this small piece of code but I do not received what I need

    //////// Client Application

    String username = Console.ReadLine();
    String password = Console.ReadLine();

    byte[] msg1 = Encoding.ASCII.GetBytes(username);
    byte[] msg2 = Encoding.ASCII.GetBytes(password);

    // Build the buffers for the send.
    List<ArraySegment<byte>> sendBuffers = new List<ArraySegment<byte>>(2);

    sendBuffers.Add(new ArraySegment<byte>(msg1));

    sendBuffers.Add(new ArraySegment<byte>(msg2));

    client.Send(sendBuffers);

    //////// Server Application

    // Build the buffers for the receive.
    List<ArraySegment<byte>> recvBuffers = new List<ArraySegment<byte>>(2);

    byte[] username = new byte[10];
    byte[] password = new byte[10];

    // Specify the first buffer
    recvBuffers.Add(new ArraySegment<byte>(username));

    // Specify the second buffer
    recvBuffers.Add(new ArraySegment<byte>(password));

    try
    {
    int bytesReceived = sock.Receive(recvBuffers);
    }
    catch
    {
    }

    sockt.Received(recvBuffers);

    Now if in Client enter toto as username and 123456 as password in server I received toto123456 no totoand 123456 seperatly What can I proceed.

    C# sysadmin data-structures help tutorial

  • vs 2008 and Icopy
    A aurelcly

    Good afternoon I currently write a IcopyHook shell using visual studio 2008 and atl I have this compile error: Error 1 error C2259: 'ATL::CComObject<Base>' : cannot instantiate abstract class c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h 1801 this is a piece of code I use to do so:

    // MyHook.h : Declaration of the CMyHook

    #ifndef __MYHOOK_H_
    #define __MYHOOK_H_

    #include "resource.h" // main symbols

    /////////////////////////////////////////////////////////////////////////////
    // CMyHook
    class ATL_NO_VTABLE CMyHook :
    public CComObjectRootEx<CComSingleThreadModel>,
    public CComCoClass<CMyHook, &CLSID_MyHook>,
    public ICopyHook, // ICopyHook interface.
    public IDispatchImpl<IMyHook, &IID_IMyHook, &LIBID_COPYHOOKLib>
    {
    public:
    CMyHook() //_ATL_DEBUG_ADDREF_RELEASE_IMPL
    {
    }

    /* //Ansi Version.
    STDMETHOD_(UINT,CopyCallback) (HWND hwnd, UINT wFunc, UINT wFlags, LPCSTR pszSrcFile, DWORD dwSrcAttribs,
    LPCSTR pszDestFile, DWORD dwDestAttribs);
    */
    //Unicode Version.
    STDMETHOD_(UINT,CopyCallback) (HWND hwnd, UINT wFunc, UINT wFlags, LPCWSTR pszSrcFile, DWORD dwSrcAttribs,
    LPCWSTR pszDestFile, DWORD dwDestAttribs);

    DECLARE_REGISTRY_RESOURCEID(IDR_MYHOOK)

    DECLARE_PROTECT_FINAL_CONSTRUCT()

    BEGIN_COM_MAP(CMyHook)
    COM_INTERFACE_ENTRY_IID(IID_IShellCopyHook , CMyHook)
    COM_INTERFACE_ENTRY(IMyHook)
    COM_INTERFACE_ENTRY(IDispatch)
    END_COM_MAP()

    };

    #endif //__MYHOOK_H_

    // CopyHook.cpp : Implementation of DLL Exports.

    // Note: Proxy/Stub Information
    // To build a separate proxy/stub DLL,
    // run nmake -f CopyHookps.mk in the project directory.

    #include "stdafx.h"
    #include "resource.h"
    #include <initguid.h>
    #include "CopyHook.h"

    #include "CopyHook_i.c"
    #include "MyHook.h"

    CComModule _Module;

    BEGIN_OBJECT_MAP(ObjectMap)
    OBJECT_ENTRY(CLSID_MyHook, CMyHook)
    END_OBJECT_MAP()

    /////////////////////////////////////////////////////////////////////////////
    // DLL Entry Point

    extern "C"
    BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
    {
    if (dwReason == DLL_PROCESS_ATTACH)
    {
    _Module.Init(ObjectMap, hInstance, &LIBID_COPYHOOKLib);
    DisableThreadLibraryCalls(hInstance);
    }
    else if (dwReason == DLL_PROCESS_DETACH)
    _Module.Term();
    return TRUE; // ok
    }

    ///////////////////////////////

    ATL / WTL / STL c++ visual-studio csharp com linux

  • Shell Extention
    A aurelcly

    Good afternoon. I currently write application to hook copy,cut,paste using ICopyHook whit visual studio 2008. When I compile my application I have compil error CComModule can't not instantiate abstract class... I try same code I found in codeproject compile whit vs 2005 and using vs 2008 I have same error. Can you help me please thank you.

    C# visual-studio help csharp linux

  • Windows service
    A aurelcly

    Please I want to start automatically my service when I use installutil without start it manually.I set start property in automatic in visual studio but in service explorer I must start service once manually.But after this it's start itself. Thank you.

    C# csharp visual-studio

  • Dos subclassing
    A aurelcly

    Good afternoon Please I want to subclassing dos commands but I don,t know how can I proceed.

    C / C++ / MFC question

  • write information in control via non UI class
    A aurelcly

    Ok imagine you create a new Winform whit a single label. And you add a new class named Server for example. You want to write a simple hello word in the label but this time via your new class which reside in a single file.

    C# design sysadmin help

  • write information in control via non UI class
    A aurelcly

    Pleased I have small problem about controls and class. I have my new Winform class with a single label in my project and I want to write information in this label in another non GUI class I don't know how I can proceed Exemple: public partial class Form1:Form { privata Server serv = new Server(); //Form1 has-a Server .... } This is my non UI class public class Server { public Server(){} }

    C# design sysadmin help

  • winform
    A aurelcly

    Pleased I have small problem about controls and class. I have my new Winform class with a single label in my project and I want to write information in this label in another non GUI class I don't know how I can proceed Exemple: public partial class Form1:Form { privata Server serv = new Server(); //Form1 has-a Server .... } This is my non UI class public class Server { public Server(){} }

    C# design sysadmin help

  • Window Message
    A aurelcly

    Good Morning. Please I have a small problem about shell in Win32 using vc++. I want to developpe small program to create an empty directory with a shortcut F9 using Hook. As we know windows uses WM_COMMAN message to it but WPARAM magic number change since windows NT we normally use it like this "SendMessage(hwnd,WM_COMMAND,0x00000000,0)" where 0x000000 is our magic number.I'm not able to find it in spy++.Please can you help me. Thank you.

    C / C++ / MFC help c++ linux

  • Copy files and directory C\Win32 no MFC
    A aurelcly

    Good morning I wrote a program to copy files and directories I must put the of source and destination directory. But now I want to make it my default copier program I want to patch default windows copy dialog and replace it for my program. Eg:When user makes right clic copy and right clic paste how can get source and destination directory. I currently read a small tutoriel but he use MFC to developpe shell copy and i know nothing about MFC. Can you help me please. Thank you.

    C / C++ / MFC c++ linux 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