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
A

A T I F

@A T I F
About
Posts
45
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • IIS for home use?
    A A T I F

    If you have Windows XP you should be able to install IIS from Control Panel->Add Remove Program. On this screen you will see Add/Remove Windows Components on the left. Click it and Windows Components Wizard runs. You check Internet Information Services and then next till the wizard finishes. It requires Windows XP installation to be available. I hope this helps.

    ASP.NET question csharp asp-net windows-admin

  • how can we bind datagrid with custom collection
    A A T I F

    Although the question is very vague on what you want to do let see if this helps. You can create a custom collection by implementing IList, IEnumerable etc interfaces or extending a CollectionBase class to store whatever object you want to specialize to. In order to sent a Custom Collection to a DataGrid it should be one of the following A DataTable A DataView A DataSet A DataViewManager Any component that implements the IListSource interface Any component that implements the IList interface CustomCollection implements IList interface so it will work as a DataSource to DataGrid. Hope this helps.

    C# help tutorial

  • Loading System.Drawing.Image from buffer
    A A T I F

    I have marshalled an imaging library and have recieved the pointer to the image buffer in an IntPtr object. How can I load that image in a System.Drawing.Image or Bitmap object. I would prefer not to use unsafe code unless deemed very necessary.

    C# graphics question

  • recieving UCHAR buffer in C# from C DLL
    A A T I F

    I have a C DLL that defines a structure like this struct Data { int iLength; UCHAR *buff; // ... other data }; void AllocateData(Data *pData); void FreeData(Data *pData); The buffer inside the structure is allocated inside the C DLL and the buffer lenght is provided in the iLength upon return. I want to use by creating C# marshalling layer to these function in C#. I have the declaration like this [ StructLayout( LayoutKind.Sequential )] public struct Data { public int iLength; //dont know what to use for UCHAR buffer // I tried byte[] buff; but it gives exceptions. //.. other data } [ DllImport( "Data.dll", EntryPoint="AllocateData", ExactSpelling=true, // Bypass A or W suffix search CharSet=CharSet.Ansi, // We want ANSI String CallingConvention=CallingConvention.Cdecl ) ] public static extern void AllocateData(ref Data data); I cannot understand what to use for UCHAR pointer and how to allocate the structure before calling the DLL function.

    C# csharp tutorial

  • Issue with GetProcAddress (Resolved)
    A A T I F

    Any function to be exported from a DLL should be preceeded by some declaraion that shows that this is an exported function. So you can try to declare the function as extern "C" __declspec(dllexport) cdError __cdecl ReturnCamera(cdHandle hEnum, cdHandle &hnd) __declspec(dllexport) shows that this is a function that dll exports and all other define C type convention for export. with the above declaration I have called this function from C# .NET so I think this should work with VB .NET

    C / C++ / MFC help c++ csharp learning

  • Filter messages
    A A T I F

    I tired that but this message filter does not seem to work on child dialogs (froms).

    C# help

  • Issue with GetProcAddress (Resolved)
    A A T I F

    GetProcAddress return the pointer to function of the call you are trying to make and in your case it will be returning address to pointer of cdEnumDeviceNext. I don;t know about what was being done there but you should have a declaration of pointer to function of 'cdEnumDeviceNext' something as follows typedef cdError (CALLBACK* LPFNcdEnumDeviceNext)(cdHEnum, pSourceInfo); and then you go like this.. hLib = LoadLibrary("CDSDK.dll"); LPFNcdEnumDeviceNext NextDevice = NULL; NextDevice = (LPFNcdEnumDeviceNext)GetProcAddress(hLib,"cdEnumDeviceNext"); // instead of NextDevice = (cdEnumDeviceNext)GetProcAddress(hLib,"cdEnumDeviceNext"); pSourceInfo= new cdSourceInfo; err = NextDevice(hEnum, pSourceInfo); //err = cdOpenSource( &SSrcInfo, &hEnumDevice); FreeLibrary(hLib); I hope you understand and that I have not made it more difficult for you...

    C / C++ / MFC help c++ csharp learning

  • Text Wrap in Static control
    A A T I F

    The text is automatically wrapped in a static control. Increase the rectangle size vertically in the resource editor. You can try to do that at run-time too and for that you will have to increase the static box size w.r.t the number of possible lines.

    C / C++ / MFC c++ question

  • filter all application messages
    A A T I F

    I need someplace where I can filter all application messages of the application (main window and all child windows and dialogs).

    C / C++ / MFC

  • Filter messages
    A A T I F

    Hi! I have created a similar thread before and I was not able to find a possible solution. Here is the issue again. I need someplace where I can filter all messages of the application (main form and all child forms). I have implemented message filters but somehow the child modal dialogs does not seem to have message filtered (there messages do not come into the filter).

    C# help

  • Time out in application
    A A T I F

    I created another thread too...but it has not worked out yet...thanks a lot lot for all your help.

    C# csharp help

  • Time out in application
    A A T I F

    I used message filter. I did not override the WndProc but I did override the PreProcessMessage of the main form and it is called before WndProc (but it seems specific to the form) - no luck . :(( I did use ShowDialog(this)) for the child dialog. It seems that whenever we have a modal dialog other than the main form the events of the dialog goes directly to the dialog and not pass through the main form or application queue. Is this true? :confused: Atif

    C# csharp help

  • Time out in application
    A A T I F

    I did exactly that. it works fine for the main application form but when ever there is a model dialog popup the filter does not work on that window.....any idea why :confused:

    C# csharp help

  • Time out in application
    A A T I F

    I did exactly that. it works fine for the main application form but when ever there is a model dialog popup the filter does not work on that window.....any idea why

    C# csharp help

  • Message Filtering
    A A T I F

    I did exactly that. it works fine for the main application form but when ever there is a model dialog popup the filter does not work on that window.....any idea why

    C#

  • Message Filtering
    A A T I F

    I forgot to add...in one place so that I can filter them.

    C#

  • Message Filtering
    A A T I F

    Is there any way to grab all messages of windows, child windows and non windows in an application before they are actually processed....

    C#

  • Time out in application
    A A T I F

    This is not at all simple.. I have the application that has about 50 dialogs all over....and many many user interaction handlers.....Do you think I will have to add timer resetter in all the user interaction handlers.... Is there any way to block all messages going to an application....main window and all subwindows...

    C# csharp help

  • Time out in application
    A A T I F

    I need to implement a time-out feature in my Win 32 application developed in C#. I need to have some way that if there is not action on the application for say 10min it should ask for a re-login into the applications. Help!!! how!!!!

    C# csharp help

  • Pipe in release mode
    A A T I F

    I am on XP and I have created an overlapped mode pipe. I call ConnectNamedPipe and set the event on wait in WaitForSingleObject. Problem comes when the WaitForSingleObject times out in release mode compile. Any other call to the pipe handle on which no client connects and connection time out throws some exception in release mode :confused:. It all works fine in debug mode. OVERLAPPED op; op.hEvent = CreateEvent(.... HANDLE hPipe = ConnectNamedPipe(.... switch(WaitForSingleObject(op.hEvent, 5000) { case WAIT_OBJECT_0: ... // all works fine CloseHandle(hPipe); // also works fine case WAIT_TIMOUT: ... // any call to hPipe throws unhandled exception CloseHandle(hPipe); // throws unhandled exception } PS: every thing works fine in Debug mode...Exceptions come in on release mode :sigh: Atif

    C / C++ / MFC debugging help announcement
  • Login

  • Don't have an account? Register

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