Solved

VB, C2, *.OBJ

Posted on 2001-07-25
9
756 Views
Last Modified: 2012-06-21
does anyone know how to tell VB not to erase the *.obj files it creates when compiling
and if that is not possible how to invoke the C2 compiler so it compiles a VB prog
also is it possible to extract the *.obj from dll's
and if so would it be possible to link them directly (staticly) with the VB *.obj's ?
extracting *.obj's from librarys was done with lib.exe in QuickBasic but i dont find lib.exe on my machine does it not come with VB ? or have i just not installed it (i dont remember what i did install)

0
Comment
Question by:pierrecampe
9 Comments
 
LVL 8

Expert Comment

by:Dave_Greene
Comment Utility
found this reference in the registry... I have no idea what it does... but looks good

C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VB98\WIZARDS\PDWIZARD\PDWIZARD.OCX
PDWizard.objTimer

Could be interesting...  looking into it
0
 
LVL 5

Accepted Solution

by:
KDivad earned 100 total points
Comment Utility
Not a serious suggestion: <grin>

Cheat. Create an app with a tight loop or low-interval timer. Attempt to open the obj files for locked unshared access. When the open succeeds, the obj has been written and closed. Once open, copy all the data out of it and dump it into a new file.
0
 
LVL 1

Expert Comment

by:Un1
Comment Utility
Try this Vb6 Addin program, It will help you link with *.obj files directly in VB, and you can make regular DLL now! (Alpha version yet)

http://www.banasoft.com/DownLoad/BNMakeEx.zip

Install:
1:unzip the file.
2:run: regsvr32 path & bnmakeex.dll
0
 
LVL 6

Author Comment

by:pierrecampe
Comment Utility
Hi Un1
I was unable to do what you said i could do
the only thing i could do was make .lib files
what i want to do is create .obj files
and preferably so by telling vb not to delete them (if possible)
and extract .obj files from .lib files
and extract .obj files from dll's
the reason i want the .obj files is that i do not want to link in an entire .lib if i only call 1 function in it
i visited banasoft.com and was unable to find any info on this dll

0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 5

Expert Comment

by:KDivad
Comment Utility
regsvr32 path & bnmakeex.dll

DLLRegisterServer .... failed.
0
 
LVL 5

Expert Comment

by:KDivad
Comment Utility
Heck, just get an undelete program and resurect the files yourself...
0
 
LVL 6

Author Comment

by:pierrecampe
Comment Utility
Hi KDivad
That looks like a great idea
i will try it out
0
 
LVL 6

Author Comment

by:pierrecampe
Comment Utility
Hi KDivad
>>Not a serious suggestion: <grin><<
but it actualy works THANKS
the following does it
Private Sub Command1_Click()
    On Error Resume Next
    Do
        Open "Beenh.obj" For Input As #1
        DoEvents
    Loop While Err
    Close
End Sub
Private Sub Command2_Click()
    End
End Sub
Hi Un1
i have 100 point waiting for you if you can provide me with info about that dll (such as a helpfile etc...)
0
 
LVL 5

Expert Comment

by:KDivad
Comment Utility
LOL! Alright, if it works then it works.

Glad I could help you out!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now