run a pro * c c + c++ / cli environment

I try to run oracle pro * c c + c++ / cli project, but it throws exceptions. It's my code.

= oracle_connect.pc

#include < stdio.h >
#include < sqlca.h >

EXEC SQL BEGIN DECLARE SECTION;

#define UNAME_LEN 30
#define PWD_LEN 30

UID VARCHAR [UNAME_LEN];
Pwd [PWD_LEN] VARCHAR;

EXEC SQL END DECLARE SECTION;

Sub main() {}

strncpy ((char *) uid.arr, 'scott', UNAME_LEN);
UID. Len = (short) strlen ((char*) uid.arr);
UID.arr [uid. Len] = '\0 ';


strncpy ((char *) pwd.arr, 'tiger', PWD_LEN);
pwd. Len = (short) strlen ((char*) pwd.arr);
pwd.arr [pwd. Len] = '\0 ';


EXEC SQL CONNECT: uid IDENTIFIED BY: pwd;

If (sqlca.sqlcode! = 0) {}
printf ("error: [%s].") \n", sqlca.sqlerrm.sqlerrmc);


Exit (0);
}


printf ("Connected!");

Exit (0);
}

= exec_proc.cpp in c + c++ / cli project

ProcessStartInfo ^ pStartInfo1 = New ProcessStartInfo();
pStartInfo1-> FileName = "proc.exe;
pStartInfo1-> UseShellExecute = false;
pStartInfo1-> RedirectStandardOutput = true;
pStartInfo1-> WindowStyle = ProcessWindowStyle::Hidden;
pStartInfo1-> Arguments = "oracle_connect.pc";

ProcessStartInfo ^ pStartInfo2 = New ProcessStartInfo();
pStartInfo2-> FileName = 'cl.exe ';
pStartInfo2-> UseShellExecute = false;
pStartInfo2-> RedirectStandardOutput = true;
pStartInfo2-> WindowStyle = ProcessWindowStyle::Hidden;
String ^ arg1 = "/ i C:\\app\\Administrator\\product\\11.2.0\\dbhome_1\\precomp"
public ';
String ^ arg2 = "/ i \"C: "
Program Files (x 86)
Microsoft Visual Studio 10.0\\VC\\include\"';
String ^ arg3 = "/ link C:\\app\\Administrator\\product\\11.2.0\\dbhome_1\\precomp\\LIB.
ORASQL11. /LIBPATH LIB:------"C:".
Program Files (x 86)
Microsoft Visual Studio 10.0\\VC\\lib\"';


"" pStartInfo2-> Arguments = arg1 + arg2 + "oracle_connect.c" + arg3;

try {}
Process of ^ exeP = Process::Start (pStartInfo1);

StreamReader ^ reader = exeP-> StandardOutput;

String ^ result = reader-> ReadToEnd();


Console::write (result);

Console::ReadLine();


Process of ^ exeK = Process::Start (pStartInfo2);

StreamReader ^ sReader = exeK-> StandardOutput;

String ^ resultR = sReader-> ReadToEnd();


Console::write (resultR); * / / Throws error messages *

Console::ReadLine();
}
catch (Exception ^ e) {}
Console.WriteLine ((e-> Message);
Console::ReadLine();
}

The errors are

LNK 2019 error: unresolved external symbol 'exit' (and 'printf', 'strlen', 'strncpy')...

In my view, linking the lib proc can't, but I don't know what the problem...
I need your help! Thanks in advance.

The problem is not with proc, but with C compiler environment.
Launch Visual Studio command prompt and try to compile the .c files generated with cl.exe.
These argumenth are not needed:

" /I \"C:
Program Files (x86)
Microsoft Visual Studio 10.0\\VC\\include\"";

 /LIBPATH:\"C:
Program Files (x86)
Microsoft Visual Studio 10.0\\VC\\lib\"

Tags: Database

Similar Questions

  • Re: Satellite P100-434: unable to load its running Xp Pro drivers

    I have a P100-434 (SPAD), which is running XP Pro, I decided that I wanted to rebuild the OS because it became very crowded and slow.
    I partitioned the HD and installed a 2nd copy of XP Pro with dual boot, but I find that I can not load the audio drivers on the NEW XP.
    The driver installation aborts and reports NO MEDIA FOUND.

    I checked the driver that I downloaded from the old installation of XP and it works very well, is the sound card and installs the drivers.
    I'm a bit of a loss as to why a vanilla OS install can't find the sound card.

    So can someone point me in the right direction to get sound? (I've reloaded XP twice with the same result each time).

    Post edited by: exraflad

    Windows XP needs * KB888111 * and * KB835221 hotfix * before MS site that you are going to install the audio driver.

    -You must install the two patches
    -Download the Conexant audio driver from the Toshiba page. I found two different versions. I would recommend checking both!
    -remove the old driver its the laptop restart of Device Manager and install the new audio driver download

    Greetings

  • After recommending the bios update, hp dv6131od running xp pro sp3 will not load windows - is there a wa

    After installing an update of the bios recommended on the hp website my dv6131od running xp pro sp3 will not load windows

    Update does not seem to have problems - failure, lack of time for flash, backup, etc.

    boot sequence seems normal (finds it a bootable cd in the drive, etc.), but windows won't load in safe or other mode

    next steps?  is there a way to access the BIOS?

    Thank you

    There is a simple solution to this problem.  The HP Online Crash Analysis Team has finally responded to my email after 34 days.  I had given up hearing from them despite several requests to repeat.

    I had completely disassembled the laptop trying to find the bios setting the jumpers on the motherboard in response to an idea contained in one of the PM, I sent... all to nothing does not...

    OCAT told me to look in the BIOS under "system configuration" for the Native SATA support.  The last update of the BIOS resets this point 'activated', but that only works for Vista & Win 7.  This must be set to "disabled" for XP and previous operating system.

    I hope that this post will save someone having to wait 5 weeks invest hours of work for a solution that took 3 minutes!

  • How can I determine if I am running XP Pro 32-bit or 64-bit?

    How can I determine if I am running XP Pro 32-bit or 64-bit?

    How can I determine if I am running XP Pro 32-bit or 64-bit?

    In general, with Windows XP, if you have to ask what architecture you are running: you are running Windows XP 32-bit.

    http://Windows.Microsoft.com/en-us/Windows7/32-bit-and-64-bit-Windows-frequently-asked-questions

    1. Click Start.
    2. Do right click my computer and then click Properties.
      If you don't see "x 64 Edition" in the list, then you are running 32-bit Windows XP.
      If "x 64 Edition" is listed under system, you are running the 64 bit version of Windows XP.

    Another surefire Tip: If your system is fully patched and you have SP3 - you run 32-bit.  64-bit has only until a SP2.

  • I am running XP Pro on my Dell Inspiron E1505. My wireless switch is 'off '. How do I turn it on?

    I am running XP Pro on my Dell Inspiron E1505. My wireless switch is 'off '. How do I turn it on?

    Your manual is here...

    FTP://FTP.Dell.com/manuals/common/Inspiron-6400x_owner%27s%20manual_en-us.PDF

    Extract from page 74...

    Enabling/disabling the wireless network adapter

    NOTE:

    If you are unable to connect to a wireless network, make sure you have all the components for

    establishing a WLAN (see "What need you to establish a WLAN connection" on page 70), then check that your wireless network card is enabled by pressing on .

    Tricky

  • I am running xp pro so why they ask me to activate Windows 7?

    activate windows 7?

    I am running xp pro so why they ask me to activate Windows 7?

    XP has been activated years ago? now, they say both need equipment to enable the garbage.

    There is nothing wrong with your report that I can see - so you should not receive not authentic or notice of activation.

    The notification came at one time and then disappear later?

    If Yes, then it is probably due to a "race condition", where two programs or more are fighting for the possession of a file--in this case, it prevents the system WGA, checking the status of the operating system, resulting in the notification. A plus later re - test then clears the air.

    The addition of SH Devolo may have been the straw that broke the back - is the amount of RAM on the system? XP SP2 requires at least 512 MB for a reasonable speed, so if your system has less, I'd say you are trying to upgrade if possible.

  • I have problems to connect to my network wireless computers in my house running XP Pro.

    Hello. I have problems to connect to my network wireless computers in my house running XP Pro. I set up my wireless router to use WPA - PSK encryption. When I type in the passphrase on computers running XP in my house, I get an error message indicating that the password must be 5 to 13 ASCII characters or 10 to 26 characters in hexadecimal. It doesn't even seem like it checks the password. The error immediately.

    I tried to connect to the network using my work running Windows 7 laptop and it works fine. Any help would be appreciated. Thank you.

    original title: cannot connect wireless

    Go, I tried and it worked was that you have to be sure what parameters you have set when you set the security of your are wireless (for example the Type of security, Encryption Type etc.) and they have to be compatible with the version of your laptop.
    Older versions usually have 64bitWEP or WEP 128 bit and newer versions have WPA, WPA2-Personal (PSK).

    The 64-bit and 128-bit require 5 or 13 characters. These characters can be obtained when you configure the wireless (it will ask you to put the characters and the characters will be automatically converted to hexadecimal characters, which it must be remembered that they are the password wireless).

    WPA or WPA2 - Personal (PSK) are easier to implement and the passwords are normal characters that you want it to be.

    Then go to your security wireless set up the page and re - configure the password or the type of network and it should help

  • I am running XP Pro, and my taskmng has without tab click!

    I am running XP Pro, and my taskmng has without tab click!  (ctrl, alt, del.)

    Just a window with what is running. (tabs - performance, network, etc.).

    Anyone know how to recover the clickable part? I reinstalled Win XP, I ran a Windows File Checker.

    I have a page if I find a place here where I can download for better communication

    C:\Documents and Settings\HP_Owner\Desktop\2011-04-30 23 25 16

    http://www.mydigitallife.info/Task-Manager-tabs-and-menu-bar-missing-or-disappear/

    Your turn :)

  • Message in the event viewer running XP Pro with SP3 get following: 7026 ID: start system or boot start drivers following could not load: nvatabus nvraid. How can I fix it?

    Get the following in the Event Viewer error message have had this message for quite some time

    ID 7026: boot start or system start following

    driver (s) failed to load: nvatabus nvraid. How do I

    This difficulty?  I am running XP Pro SP3. Would appreciate any help in this matter.

    Hello

    · What is the number and the model of the computer?

    · Remember the recent changes on the previous computer o the question?

    The problem is related to the display driver installed on the computer.

    Check the status of the card/video display adapter installed on your computer.

    a. click on start

    b. click Run, in the Run dialog box type devmgmt.msc

    (c) in the Device Manager window, look for the screen reader and expand the drive, double-click the sub element to check if an error message or error code is listed.

    See the links below: http://www.microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows+Operating+System&ProdVer=5.2&EvtID=7026&EvtSrc=Service+Control+Manager&LCID=1033

    How to manage devices in Windows XP: http://support.microsoft.com/kb/283658

  • I am running Acrobat Pro DC under MacOsSierra and when I want to scan a dokument I can´t choose the option request to the digitization of additional pages. Why?

    I am running Acrobat Pro DC under MacOsSierra and when I want to scan a dokument I can´t choose the option request to the digitization of additional pages. Why?

    Lars Andrae

    If I'm not mistaken you use ICA scanner. This 'Still Prompt pages' option is not available for ICA scans from now. But we are working on that, and will soon be available. I'll put you once its available.

    For now please try the TWAIN driver.

    Thank you.

  • Adobe Reader Pro's work in an environment in offline mode?

    Hello

    I searched this forum for my response, but I have not found an exact answer to my question:

    Adobe Reader Pro. can operate in an environment in offline mode? I do not mean its installation file which must be downloaded. My question is if this software will work without any connection to the Internet? This issue comes up after trying to work in Adobe Reader Pro in a computer without an Internet connection, and it did not work. I mean the full purchased version, of course.

    Thank you very much

    Ohad

    To find or buy you the exact name of the product, there are no Adobe Reader Pro. Adobe Reader is free, Acrobat Reader is free; Acrobat Pro is the paid for the product. The current version is ms, MS Pro Acrobat. According to me, that he needs to activate Internet and from time to time to check the license, at least for the commercial version.

  • Still cannot run Premiere Pro 2015 because 'Cannot find device of appropriate reading' is always on display. I can run PP 2014 and all the other programs of cloud of 2015 but not PP2015.

    Still cannot run Premiere Pro 2015 because 'Cannot find device of appropriate reading' is always on display. I can run PP 2014 and all programs of cloud 2015 but not PP2015. When I got this error, I had a mid-2012 Mac Pro running El Capitan 10.11.2 and an Apple ATI Radeon HD5770.  You can't update the drivers with Apple, but El Capitan should have giving me the latest video drivers.

    First try to open but after loading everything it errored out with the "can't find a video playback device adapted." A very cryptic message in my way of thinking. They mean the monitor, video card or what?  In any case, I decided that I must have my video card, so I bought a 4 GB Nvidia GTX 970 MacCards.com card, put it in and got the latest drivers for it, than MacCards.com current guard.  This resulted in no gain. Always the same result right along with the exact error even after loading the PP2015.

    I reinstalled PPCC2015 yesterday and it still loads but never opens and gives me the same error.  I feel like even if I bought a new MacPro and reloaded all software CC, I'd still have the same result. Very depressed of not being able to run the software I pay for every month.

    In the finder menu, click and hold down the menu REACH. That hold the option key and the library user will appear. Click on the user's library.

    In this folder, go to preferences and find the adobe folder.

    Right-click on the adobe folder and click get info.

    In the permissions section, & sharing, there are three names.

    Everyone should say read & write beside them.

    Open the lock, turn all to read and write.

    Then click on the little train directly under the names or to the left of the lock and the menu drop down click on 'apply to the included items.

    Then relock the lock.

    Now, go to your OS hard drive and click on users, your user name, Documents.

    Find the adobe folder there.

    Right-click on the adobe folder and click get info.

    In the permissions section, & sharing, there are three names.

    Everyone should say read & write beside them.

    Open the lock, turn all to read and write.

    Then click on the little train directly under the names or to the left of the lock and the menu drop down click on 'apply to the included items.

    The lock, the lock again.

    Wait a minute. Then launch first.

    This fixed it for me.

  • Can I continue to run Premiere Pro 2014 2015 CC?

    Can I continue to run Premiere Pro 2014 2015 CC?

    Previous through Cloud http://helpx.adobe.com/creative-cloud/help/install-apps.html#previous

    - and if you have Cloud application manager 2015 https://forums.adobe.com/thread/1906752 of difference

  • I can run premiere pro cc2015 on two computers, but one at a time?

    I would like to run first pro cc2015 on two different computers but only use one at a time.  Is this possible?

    Short answer Yes.

  • Can I run Premiere Pro CS6 and CC on a single computer?

    Can I run Premiere Pro CS6 and CC on a single computer?

    which means... then I installed it and used also (just in case) at the same time?

    THX in advance

    You can run as many versions of Adobe programs you want. For now, you can download and install PP CS6, CC and CC2014. If you want to install older versions (not only update this one you already have) you need to choose the previous Versions of the list of filters & Versions

Maybe you are looking for

  • Version 5 Feature Requests

    I would like to start a thread where we can put our version 5 queries. Here are some of my thoughts: An additional page on the "Camera" button display of the side wall that allows you to assign a function to each of the 6 buttons around information a

  • Satellite L505-112: keys Fn & Wireless fail

    I have a toshiba satellite l505-112 psls3e and I have problems with flash card driver and also with the "fn + f8" activate the wireless.I have a windows 7 (64-bit) operating system. No problems in device (Realtek PCIe FE Family Controller) management

  • VI static references in an application using

    Hello to you all, useful forum fans! I use 4 different static references of VI hung directly to "Run a VI" invoke nodes, with the waiting "until" and settings "Auto have Ref" both false, run the four screws dynamically, which each does nothing except

  • DNS domain and the connection to the AC network

    I'm new to this so forgive me. We are upgrading the workgroup to active directory. We have defined the high field and connected a laptop computer to the domain. As part of this exercise, it must configure the DNS. A laptop that is connected to the wo

  • How to install outlook express on my new computer in order to transfer my outlook express messages to outlook?

    Instructions for the transfer of messages & settings of outlook express on your old computer to outlook on the new computer suggests I can 1) install OE on my new computer (Win7) with Outlook 2010 or 2) install Outlook 2010 on my old computer with OE