Solved

VB, C2, *.OBJ

Posted on 2001-07-25
9
769 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How does CurrentUser work? 10 39
Help with retrieving partial value from a column using VB.NET 4 51
Help me. 3 60
Zip Folders Using Chilkat Routines 1 59
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

820 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