Solved

VB, C2, *.OBJ

Posted on 2001-07-25
9
768 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
ID: 6320283
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
ID: 6320712
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
ID: 6326685
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 6

Author Comment

by:pierrecampe
ID: 6332535
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
 
LVL 5

Expert Comment

by:KDivad
ID: 6332623
regsvr32 path & bnmakeex.dll

DLLRegisterServer .... failed.
0
 
LVL 5

Expert Comment

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

Author Comment

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

Author Comment

by:pierrecampe
ID: 6336230
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
ID: 6336312
LOL! Alright, if it works then it works.

Glad I could help you out!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 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

12 Experts available now in Live!

Get 1:1 Help Now