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.
A T I F
Posts
-
IIS for home use? -
how can we bind datagrid with custom collectionAlthough 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.
-
Loading System.Drawing.Image from bufferI 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.
-
recieving UCHAR buffer in C# from C DLLI 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. -
Issue with GetProcAddress (Resolved)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 -
Filter messagesI tired that but this message filter does not seem to work on child dialogs (froms).
-
Issue with GetProcAddress (Resolved)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... -
Text Wrap in Static controlThe 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.
-
filter all application messagesI need someplace where I can filter all application messages of the application (main window and all child windows and dialogs).
-
Filter messagesHi! 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).
-
Time out in applicationI created another thread too...but it has not worked out yet...thanks a lot lot for all your help.
-
Time out in applicationI 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
-
Time out in applicationI 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:
-
Time out in applicationI 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
-
Message FilteringI 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
-
Message FilteringI forgot to add...in one place so that I can filter them.
-
Message FilteringIs there any way to grab all messages of windows, child windows and non windows in an application before they are actually processed....
-
Time out in applicationThis 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...
-
Time out in applicationI 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!!!!
-
Pipe in release modeI 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