Click here to Skip to main content
15,915,864 members
Home / Discussions / C#
   

C#

 
GeneralRe: HELP with assignment Pin
Dan Neely12-May-09 10:13
Dan Neely12-May-09 10:13 
GeneralRe: HELP with assignment Pin
PIEBALDconsult12-May-09 11:27
mvePIEBALDconsult12-May-09 11:27 
GeneralRe: HELP with assignment Pin
Dan Neely14-May-09 5:29
Dan Neely14-May-09 5:29 
GeneralRe: HELP with assignment Pin
PIEBALDconsult14-May-09 12:58
mvePIEBALDconsult14-May-09 12:58 
AnswerRe: HELP with assignment Pin
Henry Minute12-May-09 5:29
Henry Minute12-May-09 5:29 
QuestionInsert into Text File from Sql Table Pin
Laji5912-May-09 4:33
Laji5912-May-09 4:33 
AnswerRe: Insert into Text File from Sql Table Pin
EliottA12-May-09 5:10
EliottA12-May-09 5:10 
QuestionHow do I tell my program which version of a COM DLL or OCX to use? Pin
Malleus1212-May-09 4:11
Malleus1212-May-09 4:11 
I have a C# program which does COM interop to a VB6 DLL via late-binding. The VB6 DLL then uses a 3rd party OCX to generate an image, the file path of which is passed back to my C# program so that it can display the image. This was all working just fine until I moved the C# program from .NET 1.1 up to .NET 2.0. Now, instead of using the program directory's version of the OCX, the COM DLL is using a version in the system32 directory which is causing problems. I can't for the life of me figure out why this is happening. I've played around with App.config files and done a few other things, but nothing is working. I don't know how to tell my C# program to use a COM OCX from a specific file location, especially when the file is not even directly referenced in the program. Again, if I compile it against .NET 1.1 it works fine, but with .NET 2.0 it breaks. Any ideas? This is really driving me crazy. Thanks in advance.

Here's an example of the late-binding code to the COM DLL:
Type myObjectType = Type.GetTypeFromProgID("MyComDLL.ClassToUse", true);
object myObject = Activator.CreateInstance(myObjectType);
myObjectType.InvokeMember("Load", BindingFlags.InvokeMethod, null, myObject, null);

QuestionPowershell / C# guru advice needed Pin
Whydah12-May-09 4:03
Whydah12-May-09 4:03 
AnswerRe: Powershell / C# guru advice needed Pin
Eddy Vluggen12-May-09 4:52
professionalEddy Vluggen12-May-09 4:52 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Whydah12-May-09 6:42
Whydah12-May-09 6:42 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Dave Kreskowiak12-May-09 6:58
mveDave Kreskowiak12-May-09 6:58 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Whydah12-May-09 21:07
Whydah12-May-09 21:07 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Dave Kreskowiak13-May-09 2:01
mveDave Kreskowiak13-May-09 2:01 
GeneralRe: Powershell / C# guru advice needed - anyone ? Pin
Whydah13-May-09 3:22
Whydah13-May-09 3:22 
QuestionC# Max Interfaces? Pin
Jammer12-May-09 3:55
Jammer12-May-09 3:55 
AnswerRe: C# Max Interfaces? Pin
Pete O'Hanlon12-May-09 4:24
mvePete O'Hanlon12-May-09 4:24 
GeneralRe: C# Max Interfaces? Pin
Jammer12-May-09 9:17
Jammer12-May-09 9:17 
AnswerRe: C# Max Interfaces? Pin
Dave Kreskowiak12-May-09 4:51
mveDave Kreskowiak12-May-09 4:51 
GeneralRe: C# Max Interfaces? Pin
Jammer12-May-09 9:20
Jammer12-May-09 9:20 
Question3d graph from sql query Pin
laziale12-May-09 3:28
laziale12-May-09 3:28 
AnswerRe: 3d graph from sql query Pin
Giorgi Dalakishvili12-May-09 3:56
mentorGiorgi Dalakishvili12-May-09 3:56 
QuestionCrystal report Pin
KIDYA12-May-09 2:52
KIDYA12-May-09 2:52 
QuestionNeed Help with Beginner's Homework Assignment PinPopular
Mo Chips12-May-09 2:24
Mo Chips12-May-09 2:24 
AnswerRe: Need Help with Beginner's Homework Assignment Pin
Michael Bookatz12-May-09 2:30
Michael Bookatz12-May-09 2:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.