Security Software review and downloads
  • Home
  • Spyware & Spyware Remover
  • Registry & Registry Cleaner
  • Firewall
  • Hacked
  • Uninstall & Uninstaller
  • Antivirus

I want to share two variables between two dll’s in Visual C++ 2005?

February 13th, 2009 · No Comments

ok so keep in mind I'm a simpleton so please use laymen terms.

I have one dll that will set the (float)variables to their values and another dll will be reading them. And I would like to use the following method:

#pragma data_seg (".myseg")
float one_ = 0.1f;
float two_ = 0.1f;
#pragma data_seg()

Both dlls will never restart so the var's will not go back to 0.1f that value was just used to initialize them. the trouble comes when I try to add the Link info:

// Tell the linker that the section
// .MYSEG is readable, writable and is shared.
#pragma comment(linker, "/SECTION:.MYSEC,RWS")

I dont understand what the "section" part is. Keep in mind I am a Qbasic programmer trying to learn C++ . In visual c++ 2005 there is a linker section in the properties pages - do I have to add something here?

any helpers out there?

Related posts:

  • how do you export a function in a dll so another can obtain pointer to a value?
  • Visual C++ ok I'm a musician not a programmer, but because Cubase gives you the...
  • windows XP file share question?
  • Hi, I want to know how to share folders on a workgroup environment so that some shared...
  • How can i reduce final exe or dll file in MFC project in visual c++ 2008?
  • because minimum size of my project in shared dll is 104 KB but some projects are 24 kb in...
  • Help - Windows Firewall?
  • my friends and i share data on LAN like music vidoes, song movies etc. but there is one...
  • How do I connect my MacIntosh OS-X to my Microsoft VISTA Computer to share a printer connected to the PC.?
  • I have a wireless network for internet which is shared by both the mac and the pc. This...
  • how to share files on dual boot (Xp and VIsta)?
  • Does anyone here knows how to share files on vista and xp? (not the shared folder) I...
  • How do I uninstall a part of Visual Basic 2008?
  • I had installed the first section of Visual Basic 2008 and had stopped the installation...
  • Are there separate uxtheme.dll files for different computer users? Do visual styles only effect one user?
  • On my laptop, I tried to use Windows visual styles and I accidentally renamed uxtheme.dll...
  • How can I make dlls in C# without using the command line?
  • I'm using Microsoft's Visual Studio and I was wondering how you can make a .dll, out of a...
  • changin US 5, 10 dlls bills to British Pound in London?
  • ´m travelling to London and I´ll bring US Dlls . but my question is : I have lots of 5,...

    Tags: Dll


    0 responses so far ↓

    • There are no comments yet...Kick things off by filling out the form below.

    Leave a Comment

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word

    Tags: Email Spam Uninstall spyware Security Software Trend Micro Registry Cleaner Pc Tools Norton Nod32 Kaspersky Internet Security Hacked Firewall Computer Security Avg Avast Antivirus Ad Aware Monitoring Software Encryption Backup eset Avira ccleaner Malwarebytes hijackthis Spybot malware


    • Most popular Software downloads

      • Pctools
      • kaspersky
    About | Contact Us | Sitemap Security Software review and download . All rights reserved PoweredBy Yahoo!API.