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
B

Big Trev

@Big Trev
About
Posts
9
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using ActiveX In a windows service
    B Big Trev

    I have an app which uses an ActiveX component. No problmes there. I have now converted it to run as a windows service, which also work fine when i configure the service to run using my NT Login account. However, when i configure the service to run using the System Account, i get an exception: System.IO.FileNotFoundException: The specified module could not be found. when the code tried to instantiate the ActiveX control. I have the Path to the Dll in the system environment. Does any one have any ideas? Thanks

    C# com question workspace

  • Icons in a c# gui
    B Big Trev

    Does any one know a good source for downloading Icons i can use to spice up my GUI. Thanks Trevor

    C# csharp

  • Using ActiveX control in C#
    B Big Trev

    Yep, i did a regasm /u on the interop assembly, and regsvr32 on the ocx. Still no joy. let me know if you fancy having a go with the ocx. I can mail it. it is only 100k. At the moment i an writing a DLL wrapper for the c api that also comes with the product. Thanks Trev

    C# help csharp visual-studio com

  • Using ActiveX control in C#
    B Big Trev

    Thanks for the reply. I still can not get it working though. this is the code i am using to create the object. COMMSOCXLib.CommsOCXClass comm = new COMMSOCXLib.CommsOCXClass(); try { comm.Reset(); } catch (System.Runtime.InteropServices.COMException e) { Console.WriteLine(e.ToString()); Console.ReadLine(); } And this is the error i catch. System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFla gs flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at COMMSOCXLib.CommsOCXClass.Reset()

    C# help csharp visual-studio com

  • Using ActiveX control in C#
    B Big Trev

    Has any one had much luck with this. I have run AXIMP ont the .OCX to create the DLL. Then i have registerd the DLL using REGASM. I add a reference to the DLL, then try to instantiate an object, I get the following error An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll Additional information: Catastrophic failure Has anyone any ideas. I have also tried this by just adding a reference to the original .ocx, and letting the IDE to the AXIMP for me. Same problem. Thanks

    C# help csharp visual-studio com

  • Using a .lib in c#
    B Big Trev

    I am trying to use a c++ api from C# code. I know how to import DLL's, and also about tlbimp, but what is the mechanism for importing a .lib file. Thanks Trevoe

    C# csharp c++ json tutorial question

  • Closing Modal Dialog
    B Big Trev

    I have a dialog that is created using dlg.DoModal(); I have a timer funciton running in a seperate thread, created by the dialog. Is it possible to have the thread call Onok() for the dialogue, in order to close the dialogue as if I'd hit ok button? Thanks

    C / C++ / MFC question

  • ODBC and Sybase
    B Big Trev

    Thanks, using IS NULL has fixed the problem.

    Database help database question

  • ODBC and Sybase
    B Big Trev

    Not sure if this is a bug in Microsoft.Data.Odbc, but here goes anyway. I have a table in Sybase 11.9.2, with 2 columns, ID and Description. I have the following stored procedure, CREATE PROCEDURE Get @ID PK_SMALLINT = NULL Select * from Table where ( (@ID = NULL) or (ID = @ID) ) The problem is that when i run the stored procedure without passing a Parameter from Dot Net, i only get the column names returned in my result set, yet when i run it from ISQL or similar, i get the complete contents of the table. Has anyone seen this before? When i pass in an ID value, i get 1 row returned as expected. It looks like there is some problem with or statements of this type, and the odbc data adapter.

    Database help database question
  • Login

  • Don't have an account? Register

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