Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Visual Basic Development & The Visual C++ Shared Objects


I having a really irritating problem. I'm developing an Add-in in Visual Basic... however, to do the development I'm doing, I require the "Visual C++ shared Objects" reference to be added to the project.

Here in lies the problem. I also need the VB command left [as in left string copy - ie. left("aaaaa", 2)] The only problem is that by adding the "Visual C++ shared Objects" reference, the LEFT command is overridden with the C++ version which returns a long (or something like that).

In the References window, I've already set "Visual C++ shared Objects" to the lowest possible priority... is there anyway to get around this arrangement?

Thanks in advance,
Bishop




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Shared Memory, Visual Basic And #pragma Statment
Hi,
I am trying to write a dll to share memory between c++ and visual basic.

I want the dll to contain shared memory.
I tried with memory mapped file- works but only on strings (conversions etc...)
I tried on #pragma doesnt work!!!!! why??????


P.S the #pragma works when both processes are c++

Shared Variables Between Script Control And Visual Basic Program
How can you retrieve a value set ifor a parameter n Script Control to normal VB?

How To Access Dbase File (*.dbf) Through Visual Basic In Shared Mode
I want to open a Dbase file through Visual Basic in a shared mode,
i tried using DAO object but din't worked.

If a Dbase program has opened a file (x.dbf) in shared mode and at
the same time a Visual Basic application accessing the same file, then
it gives me an error ---

Is there are method or so to solve this issue

Kind rgds,
Sunil Dhyani


************************************************** **********************
This message and any attachments are confidential to the ordinary user of
the e-mail address to which it was addressed and may also be privileged.
If you are not the addressee, you may not read, copy, forward, disclose
or use any part of the message or its attachments. If you have received
this message in error, please notify the sender immediately by return e-mail
and delete it from your system.

Internet communications cannot be guaranteed
to be secure or error-free, as information could be intercepted, corrupted, lost,
arrive late or contain viruses. The sender, therefore, does not accept liability
for any errors or omissions in the context of this message, which arise as a
result of Internet transmission.

Any opinions contained in this message are those of the author and are not
given or endorsed by K. Raheja Corp. or the office through which this message
is sent unless otherwise clearly indicated in this message and the authority of
the author to so bind the K. Raheja Corp. entity referred to is duly verified.
************************************************** **********************

Visual Basic Objects
Is there any way to encapsulate (hide) the properties of a Visual Basic object, and therfore use TRUE object oriented techniques. Allowing the developer to access and chage properties by direct assignment, (ie: ObjectOdometer.mileage = ObjectOdometer.mileage + 10), defies a basic principle of object oriented programming, namely, data encapsulation. Instead, you should be able to have properties which cannot be accessed directly and can only be changed via methods, (ex: ObjectOdometer.Increment(10). This is a fundamental aspect of object oriented programming, which keeps the user from accessing the actual objects variables, (properties), and inadvertently altering a property incorrectly, which is an age old gripe of traditional programming, (such as using a global variable, "n", which stores the mileage of your odometer, only to have this messed up by accidentally using "n" as a counter in a "for" loop somewhere else in code).
Any ideas, or has MS just just stuck us with "unobject oriented object orientation"? Thanks ahead for help!

Visual Basic 6.0 Objects
Hi All,

I wish to learn as much as possible about VB objects.

Would anyone have any good links that is a good reference?

Or maybe explain what a couple of them do?

Cheers,
mccreaso

Visual Basic Memory + COM Objects
Hi all,

I have a question because I'm not an expert on VB. I'll try to explain my problem.

I have developed a COM object in C++. I can use this object in VB. The object is a collection (ICollection) which stores connections (IConnection). The IConnection interface is able to communicate with PLC's (Programmable Logic Controller).

I added a few connections to my collection. Now, I use this function:

Code:
' Declarere variables
Dim connection As COMDRIVER.IConnection

' Get connection
collection.GetConnection index, connection
Nu, I have the connection object in the connection variable. This works perfect.

However, when I do this 2 times, it's not working anymore! Also, the destructor of my connection object get's called when the function ends. In other words, VB just releases my memory, because he don't need it anymore in that function! But now all my data in my COM object is lost! I don't want this to happen!

How can I make visual basic let my object exists. I want to get the data of the connection in that function, but I must be able to get the object in another time too!

Thanks

About Dispose Objects In Visual Basic 6
can anyone explain to me how disposing objects in visual basic 6?
thanks

Visual Basic Memory + COM Objects
Hi all,

I have a question because I'm not an expert on VB. I'll try to explain my problem.

I have developed a COM object in C++. I can use this object in VB. The object is a collection (ICollection) which stores connections (IConnection). The IConnection interface is able to communicate with PLC's (Programmable Logic Controller).

I added a few connections to my collection. Now, I use this function:

Code:
' Declarere variables
Dim connection As COMDRIVER.IConnection

' Get connection
collection.GetConnection index, connection


Now, I have the connection object in the connection variable. This works perfect.

However, when I do this 2 times, it's not working anymore! Also, the destructor of my connection object get's called when the function ends. In other words, VB just releases my memory, because he don't need it anymore in that function! But now all my data in my COM object is lost! I don't want this to happen!

How can I make visual basic let my object exists. I want to get the data of the connection in that function, but I must be able to get the object in another time too!

Thanks

Visual Basic In Business Objects
hie team,
can any one help me in designg Business Objects in Visual basic can any one suggest me a website for staring VB in Business Objects

thnx in advance,
Ektha

Visual Basic RDO Objects With Active X
I am trying to connect to a database on a remote server using visual basic 6.0. I am using rdoenvironments(0) to get the handle to the environment which I am using to get a connection to the database. This code is working on my PC. However, it doesn't work on the user's PC and gives an error
'ActiveX component can't create object'.
Can someone help me to solve this problem?

thanks,
hema

Converting Access Objects Over To Visual Basic?
Is it possible to export and/or convert Access Objects ie; forms, reports, etc. over to Visual Basic. I need to recreate a stand-alone executable program that needs to replicate an MS Access Database with all it's forms and reports.

Thanks in advance,

Blake

Converting Objects From Access To Visual Basic
Hi

Anyone knows if there is a tool that converts Ms Access forms to Visual Basic forms?
And a report generator for Visual Basic that converts reports from Ms Access to Visual Basic?

Thank You for your attention

Mário santos
msantos2@hotmail.com
Portugal

Browser Helper Objects In Visual Basic
I want to develop Browser Helper Objects in Visual Basic. However, I have been able to fish out the C++ way from MSDN. Could you be kind to explain me the metod of developing Browser Helper Objects in Visual Basic.
Thanking you in advance
Kind Regards
Shaolin

Share Knowledge is my advice to all.

Knowing Mail Status Using Cdo Objects With Visual Basic 6.0
HI,

How to know whethete a mail has been sent successfully to a particular mail address.i mean to say suppose the user has entered an invalid email address,so in that case the cdomessage.send method is not giving error.so how to know that

Thanks
pavan

Word And Visual Basic [ How Can I Get The Save As Window Through Visual Basic? ]
Hi, I made a small program in visual basic that with the use of

Dim oWord as new word.application
Dim oDoc as new word.document

fills a document with some data from the visual basic.
I want when those data are loaded in word the save or save as window to appear.
The command oDoc.saveAs saves the document without even asking for a filename.

What Can I do?

How Do I Run A Program I Made In Visual Basic On A Computer Without Visual Basic?
I created a program in Visual Basic and I was curious at what I needed to do to be able to install or use this program on a computer without Visual Basic. Any help would be great! Thanks in advance.

Extracting Visual Basic Source Code From Visual Basic EXE
hi everyone,

Well actually the problem in my case is that i had mad an EXE in VB6 around a week ago and had stored the EXE and th source code in two diferent folders. By mistake somebody ha deleted the source code folder. I wanted to make some changes i the EXE code and Now i have only the EXE folder to deal with.

Is there any method by which i can extract the Visual Basic cod from the VB EXE. Is there any application or software which ca help me in this? Do give me the hyperlink for downloading th EXE for the extraction if possible.

Please let me know at the earliest.

Thanks in advance.

Ankit

Code Change From Visual Basic.net - Visual Studio 2005
I am working on a tuturial that i have for Visual basic.net ( for now )

I am working with Visual Studio 2005.

I have been working on a code to change the text color by the name put into
the text box.

Visual Basic .Net code.
Label2.ForeColor = Color.FromName(TextBox1.Text)

i get the error
Name 'Color' is not declared.

I was wondering if someone can show me how things would be in Visual Studio.

thank you

Apply Windows Visual Themes From Visual Basic?
I am moderately new a visual basic - i know quit a bit - but not as much as some people - was just wondering - is it possible to make a visual basic program that applies a windows visual style - if so - how?

Data Type Conversion From Visual C++ To Visual Basic
I'm trying to convert some code from Visual C++ to Visual Basic. There are some types, however, that I cannot seem to figure out what they should be. The C++ types are dpecifically WORD and DWORD. What should they be in Visual Basic? I thought DWORD is a Long, but I have no idea what a WORD would be. Specifically, I'm determining the types from the BITMAPINFOHEADER structure.

Microsoft Visual Studio 6/Visual Basic 6 Sp6 RELEASED!!!!
Microsoft released Service Pack 6 for Visual Studio 6, download the latest(and final) service pack if you have VS6/VB6 installed.

Official Page
Official Page of sp6

List of Fixes
See the fixes from sp4 and sp5

Direct Download
Click here to download it (About 62mb)



Download it, it has many fixes included!



As BrianS told me: VB6 SP6, its only 26mb and VB Runtimes sp6 its only 1.02mb


Enjoy the new service pack! It is the LAST!!!!!

Linking To DLL's Created In Visual Studio From Visual Basic
Can anyone give me some usefull tips or links on how to link to routines writen in C++ from Visual Basic

I am aware of the

Declare Function CloseHandle Lib "testdll.dll" (ByVal hObject As Long) As Long

type notation, but I am curious on what I have to do with my DLL to allow this notation to work.

Any suggestions or links would be a great help, thanks!!!

How To Access Visual FoxPro Data In Visual Basic
I have a problem :(

I would like do delete a record in FoxPro data base with Visual Basic 6

I use ODBC kuhinja:

Const povezava = "Provider=MSDASQL.1; Persist Security Info=False; Data Source=kuhinja"

adott1.ConnectionString = povezava
adott2.ConnectionString = povezava

adott2.RecordSource = "SELECT sifra,grupa,naziv,nabavna,vpc " _
& "FROM izdelki "
adott2.Refresh

to view data in datagrid

I delete a record :

adott1.RecordSource = "SELECT * " _
& " FROM izdelki " _
& " WHERE sifra='" & adott2.Recordset!sifra & "'"
adott1.Refresh

Record is marked in FoxPro as deleted ( not yet PACK ) but in Visual Basic datagrid (adott2.refersh ) record is still in it.

How can i execute PACK in Visual Basic????

THX

sorry for bad english :)

Dumb Question About Visual Basic / Visual Studio...
From someone who has been programming as long as I have, this has got to be a dumb (DUH!!!) question.  But if I don't get it answered, I'm going to continue to run around in circles.  The problem stems from what appears to be a simple name change, and the fact that I only upgrade my software infrastructure here every few years, so I miss what's going on.

VB6 appears to be the last (terminating) version of Visual Basic.  There will be no VB7.  But, clearly, the language itself is not being terminated -- just called something else, or is being "assimilated" (resistance is futile) or absorbed into a larger platform, losing its identity as a stand-alone programming environment.

How does Visual Studio relate to Visual Basic?  Is the "next generation" version of Visual Basic now being called Visual Basic.NET?  Is VB.NET part of Visual Studio?  If I get Visual Studio, is VB.NET automatically part of that package?  Or is Visual Studio one thing, and VB.NET something else entirely, ordered as two separate things?  If I want to keep programming in VB (as a programming language/environment), do I now have to get Visual Studio instead?

Sorry to bother the more enlightened souls here with a DUH question -- but I gotta ask SOMEBODY...

Thanks.  You folks have been a GREAT help here.

I Want To Make An OCX By Visual Basic But Also Compatible With Visual C And Delphi If Can!
I created an OCX using Visual Basic 6.0 is there some way to make it work in another programming languages like Visual C or Delphi?

Is Visual Basic Script As Ubset Of Visual Basic
Hello

Is visual basic script a subset of Visual Basic code?

Visual Basic Items Removed From Visual Basic.NET
A while ago (maybe up to a year) I had found a web page (probably a Microsoft MVP's home age) that had a list of about 100 things that were removed from Visual Basic in the transition to Visual Basic.NET. As it is, I would like to look at that again, but I can't seem to find it on my computer. Does anyone remember this page and/or have a copy of the link or the file that was on it. It has particular things like Debug.Print is no longer valid and MsgBox function is not supported. I've look on Microsoft's website and found a great deal of information about implementation difference, but I can't seem to locate this particular piece. If anyone could help I would appreciate it very much.

Thanks in Advnance

Nick August

Visual Basic And Visual C++ Sharing File
I was wondering how do I access the log file and take its content i.e. numbers into Visual C++ while continuously writing the log file in Visual Basic?

Is the function like Openshare help or is there another way?

Thanks

Can Pass Arguments Between Visual Basic To Visual C ++?
hi

i have a qn...can i pass argument such as filename, value between visual basic and visual c++ and vice versa.

if yes, what are some of the api i could look into and use? shell?

Thank YOu!!!

Visual Basic Versus Visual C Performance
Hi people :

A question that many of us make to ourselves. I´ve not received a convinced answer.

I´ve heard already thousand times that programs writen in C run "better" and "faster" than programs written in Basic. The same for Visual C against Visual Basic.
Even Visual C has better press than Visual Basic, I mean, a commercial software written in C seems to be "stronger" than a commercial program written in Visual Basic.
I understand that programs can be well written or not so well, no matter which language is used, but I´m talking of well written programs, in both languages.

But, what is the truth behind all this.
Suppose a program that works in a network.
The program will use the winsock that comes with Windows, no matter if the program was written in Visual C, Visual Basic or whatever language the programer is using.
Let´s supposed that that asumption is true, that means that the Visual Basic program does things in a slower way than the one in Visual C, so, the Visual Basic compiler is charging our code with processor instructions to do nothing.

I´m not a Visual C programer. I think that I write optimized code in Visual Basic.

I will appreciate comments.

Visual Basic/Visual Sourcesafe Problem
Having a problem at work with sourcesafe and vb 6. I have one computer here that for some reason after using SourceSafe to grab the newest version of code from the server and copying it to the local machine, it prompts with a save as dialog box when trying to save (want it to save to the local machine, will update sourcesafe copy later).

Any ideas? I have the following from MS, but this happens only on one machine and we don't use ActiveX Controls

Q223128 - FIX: Problems Saving Visual Basic Form to Visual SourceSafe

Compiling Visual Basic In Visual Studio?
Hello all,

I'm not sure if this is a dumb question or not, but can you compile visual basic code in Visual Studio? Do I need a Visual Basic IDE? Thanks!

Visual Basic & Visual SourceSafe Offsite
Hello,

Do you recommend any configuration solutions to use Visual SourceSafe offsite in Visual Basic? My team in Korea is going to collaborate with the India team, and I hope there's a simple solution for that.

Thanks,

Justin

Combining Visual Basic And Visual C++ Code
I need to embed C++ code in my Visual Basic project without using a DLL.
I understand it's something to do with the linking process and it is described here:

http://www.devx.com/upload/registere...199/jc1199.asp

However, I don't seem to have the 'Compile Controller' add-in that it talks about. Can anyone tell me either where I can find this add-in or how I can embed a C++ function in a VB project

Visual Basic 6 & Visual Styles: The Story
Ok... I've got Windows XP... great OS... I've got XP SKins... great Program... and I've got Visual Basic 6... great IDE... so I thinked... what about giving my applications Visual Styles Support?

So I did it, I've added Visual Styles to VB 6 and to my application and... IT WORKED!!! I had the cool XP Buttons and Checkboxes... GREAT!!! I tried Tabs too!!! They worked... frames worked too!!! But after two days my application started to play the Critical Error sound...

I tried to do another application with simpler things... and after a lot of experiments I've discovered that with standard controls (Buttons, Option Buttons, Check Boxes...) the application doesn't work and with other ones... it works! I tried everything from upgrading to using UxTheme.dll... So now I just talk about it with other people... hoping to find someone able to explain me WHY does my application worked once

Thanks for reading the whole thing

Newby : Visual Basic And Visual Studio
Hello,
I'm new at this group .
I used to program with Sybase Powerbuilder tool .
I want to learn VB and have to buy the development tool .
Wondering what the difference is between VB and Visual studio .
I want to make programs that will be able to go on the net and use databases . Programs like stockmanagement over the net , etc ...

Witch program do I have to buy to start ?

Thanks for any info .

Ronnie

Visual Development Tool
Hi there !

I found a new free visual development tool that looks like VB,
but it can also execute your applications directly onto your PC microprocessor !
This is really great !

Check it out :

http://www.hyperpanel.com/boot_direct.php3?ID=15570604http://www.hyperpanel.com/boot_direct.php3?ID=15570604

Can VB 5 And Visual FoxPro 6 Co-exist On The Same Development PC?
I know that you CAN'T compile and distribute VB 5 applications anymore once you install VB 6 on the same computer.  I guess you'd call it ".dll hell".  

What I was hoping is that one of you VB gurus could tell me if you've had any experience (problems) with installing Visual FoxPro 6 and VB 5 on the same development workstation- especially compiling and distributing applications.  

Thanks

Install A Shared DLL With Visual Studio Installer
Hi

I wrote a DLL using VB6 and I plan to use it in other projects. I want to know how to use Visual Studio Installer 1.1 to install that DLL. Which is the best way, create a merge module or place the DLL in every installer project and set SharedLegacy=True?
The VSI's Visual Basic Installer project wizard can be used to create a merge module?
How can I do this?

Thank you

Controlling Visual Studio 6.0 Development Environment
I posted this question on another forum back on May 1/2003 but I really did not get any suitable suggestions. Hopefully someone can help here this time. How do you get Visual Studio 6.0 development environment (for Visual Basic) to maintain the menu options that you choose every time you open the editor? When ever I open the editor I have to close the menus I don't want. I thought this was a relatively easy question maybe it was just a matter of changing some setting somewhere but no one has offered a suitable solution as of yet.

I have another question along the same lines and that is how does one save the favourites in the help files so when you re-open the help file during another development session you can access those saved favourite help files? Right now any time I close my editor all the favourites that I saved in the previous session are removed.

Thanks in advance to any help someone can offer.

Visual Basic Or Visual C++, What To Learn With
Hi,
I'm a newbie I want to learn programing. A long time ago I bought, Sams Teach Yourself Visual C++ in 21 days book. I never bothered with it though. Now I have an urge to try some programming.

I've heard about both VB and VC++... I was wondering which is better to use? What do I use to code with VC++? I have a disk with VC++ 6.0 Intro Edition. Is that good ? I was under the understanding it was just like VB, I could be wrong though.

Thanks!!
Bohh

Visual C++ Vs. Visual Basic, I'm A Beginner
Hello,

My name is David Waters and I have started programming in Visual C++ 6.0. However, where ever I look, I only find older books on it and I'm seeing lots of Visual <b>Basic</b> stuff on the net. Is Visual C++ too old or something? I noticed that when I looked through Oriellys book catalog, I found nothing on Visual C++. Not a single book ever created for it. I'm a bit confused. What’s currently going on in the world of programming? Can someone explain this Visual Basic thing to me and is it worth programming in Visual C++ still? Advantages? Disadvantages?

Thank you for your help and time! I really appreciate it.
David Waters

Visual Basic And Visual Studio
Can you use visual basic or maybe python to control visual studio?

VISUAL BASIC VS VISUAL FOX (for Experts)
Ive done a quick search on the internet and found many sites that shows the advantages of using vfox I also have some friends that tell me that fox is better for handling data, quicker, the programming has less code, example(instant combo in a grid) and it can also connect with SQL server.
I program in VB but need to know what this forum thinks about Vfox and perhaps what are the drawbacks of using it.
Why VFox isnt a .net language?

Thanks,
Cybersandokan

Visual Basic Vs. Visual FoxPro
Hi,

Have anyone here used Visual FoxPro before? I would like to know how it measures up to Visual Basic.

Thanks in advance.

Visual Basic To Visual C++ Converter...
...and back?!

A few people have show an interest in a program that'll convert VB programs to Visual C++.

Do any exist (and are free)?
Is anybody cool enough ti right one?

Callin A Visual C 6 Dll In Visual Basic 6 0
hi,
i have made a simple dll in vc and i try it to call in vb standard exe but i am getting the error messages "bad calling convention". the c code is listed below

void func(int *a)
{
*a=5;
}

please give ur suggestions .

Use A Visual Basic Dll In A Visual C++ Project
Hi all, i would like to use a Visual Basic ActiveX Dll in a Visual C++ project...

how i can do that ???

thanx in advance

Carl
crheaume@motus.com

Copyright © 2005-08 www.BigResource.com, All rights reserved