Click here to Skip to main content
15,918,041 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: USB information & use? Pin
Luc Pattyn3-Dec-08 14:15
sitebuilderLuc Pattyn3-Dec-08 14:15 
GeneralRe: USB information & use? Pin
bac5123-Dec-08 14:56
bac5123-Dec-08 14:56 
Question[Message Deleted] [modified] Pin
EliottA2-Dec-08 8:32
EliottA2-Dec-08 8:32 
AnswerRe: VBA.Collection Pin
Dave Kreskowiak2-Dec-08 9:09
mveDave Kreskowiak2-Dec-08 9:09 
GeneralRe: VBA.Collection Pin
EliottA2-Dec-08 9:17
EliottA2-Dec-08 9:17 
GeneralRe: VBA.Collection Pin
Christian Graus2-Dec-08 12:16
protectorChristian Graus2-Dec-08 12:16 
GeneralRe: VBA.Collection Pin
EliottA2-Dec-08 12:21
EliottA2-Dec-08 12:21 
QuestionHaving problems registering/unregistering .Net assembly with RegAsm on client Pin
Jon_Boy2-Dec-08 8:22
Jon_Boy2-Dec-08 8:22 
Hopefully someone can help clarify what I am doing wrong here. My dev box and clients are running .Net 2.0 Sp 1 installed. I have a .Net .dll (register for COM interop is enabled) which is being used from VB6 (AKA .NETDLL from this point on). Everything works fine on my dev box. The .Net .dll and .tlb are generated properly when I compile and run as expected on the dev box from VB6.

I copy all files to a test client box. I register the .Net dll using "regasm ".NETDLL FILE PATH" (command window states "Types registered successfully" with no errors).

The code which uses the .NETDLL object blows up with error: "The system cannot find the file specified." If I open VB6 on a client box, the .NETDLL is not displayed in the .dll list. I can select browse and manually select the .tlb file and press oK. The reference is added and retained. I can create an instance of the object without any errors, but as soon as I attempt to use the variable, code blows up.

'OK
dim o as new FTP.Client
'Blows up w/ "The system cannot find the file specified."
o.Server = "regasmsucks@ms.com"


Now, if I register the .NETDLL using "regasm ".NETDLL file path" /tlb:".NETDLL tlb path" - everything is fine. Also if I unregister with "regasm ".NETDLL file path" /tlb:".NETDLL tlb path" /u - also works fine. NOTE: unregistering leaving out the .tlb section displays "types unregistered successfully", but nothing is removed (verified using VB6 and looking at references that can be added in).


Any ideas on what I am doing wrong? Do I have to re-create the .tlb file on the client when I already have one for the .dll to register correctly and do I have to include the .tlb in registering/unregistering successfully?

Not a big deal, just thought I'd ask. I don't remember having this problem in the past with previous interop projects.

Any suggestions, ideas, or 'constructive criticism' are always welcome.

"There's no such thing as a stupid question, only stupid people." - Mr. Garrison

AnswerRe: Having problems registering/unregistering .Net assembly with RegAsm on client Pin
Vimalsoft(Pty) Ltd2-Dec-08 20:13
professionalVimalsoft(Pty) Ltd2-Dec-08 20:13 
GeneralRe: Having problems registering/unregistering .Net assembly with RegAsm on client Pin
Jon_Boy3-Dec-08 2:08
Jon_Boy3-Dec-08 2:08 
QuestionApplication GUI and events working slowly Pin
Anubhava Dimri2-Dec-08 1:48
Anubhava Dimri2-Dec-08 1:48 
AnswerRe: Application GUI and events working slowly Pin
Dave Kreskowiak2-Dec-08 2:15
mveDave Kreskowiak2-Dec-08 2:15 
QuestionOracle Using Vb.net Pin
sarfarazaliqureshi1-Dec-08 23:46
sarfarazaliqureshi1-Dec-08 23:46 
AnswerRe: Oracle Using Vb.net Pin
Wendelius2-Dec-08 0:02
mentorWendelius2-Dec-08 0:02 
QuestionSimple plugin architecture implementation Pin
lmendes19791-Dec-08 23:16
lmendes19791-Dec-08 23:16 
AnswerRe: Simple plugin architecture implementation Pin
Dave Kreskowiak2-Dec-08 2:18
mveDave Kreskowiak2-Dec-08 2:18 
QuestionIterate a subset of Datatable Pin
Fahim A1-Dec-08 20:08
Fahim A1-Dec-08 20:08 
AnswerRe: Iterate a subset of Datatable Pin
Christian Graus1-Dec-08 20:42
protectorChristian Graus1-Dec-08 20:42 
GeneralRe: Iterate a subset of Datatable Pin
Fahim A2-Dec-08 12:26
Fahim A2-Dec-08 12:26 
GeneralRe: Iterate a subset of Datatable Pin
Luc Pattyn2-Dec-08 13:01
sitebuilderLuc Pattyn2-Dec-08 13:01 
AnswerRe: Iterate a subset of Datatable Pin
moodwrod1-Dec-08 20:49
moodwrod1-Dec-08 20:49 
GeneralRe: Iterate a subset of Datatable Pin
Jon_Boy2-Dec-08 2:40
Jon_Boy2-Dec-08 2:40 
QuestionHow to Change Drive later of disk?? Pin
Piyush Vardhan Singh1-Dec-08 18:49
Piyush Vardhan Singh1-Dec-08 18:49 
AnswerRe: How to Change Drive later of disk?? Pin
Christian Graus1-Dec-08 20:43
protectorChristian Graus1-Dec-08 20:43 
GeneralRe: How to Change Drive later of disk?? Pin
Ashfield1-Dec-08 21:25
Ashfield1-Dec-08 21:25 

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.