Problem with the West with Visual Studio 2010 and Oracle 12

I can't get the OCCI driver to work. The following code generates an error of access violation in the createConnection call:

#include < Windows.h >

#include < occi.h >

#include < exception >

#include < sstream >

using namespace oracle::occi;

int main (int argc, char * argv) {}

std::ostringstream s;

try {}

Environment * env = Environment::createEnvironment (Environment::DEFAULT);

Oracle::OCCI:connection * ptr_conn = nullptr;

ptr_conn = env-> createConnection ('test', 'test', ' localhost:1521 / web ");

env-> terminateConnection (ptr_conn);

} catch (SQLException & to) {}

s < < "SQLException:" < < se.getMessage () .c_str (); "."

} catch (std::exception & e) {}

s < < e.what ();

} catch (...) {

log. Error ("unknown exception.");

}

OutputDebugStringA (homobasidiomycetes () .c_str ());

}


This piece of code is executed directly in VS2010 on a box of 8.1 to win. He is bound with oraocci12d.lib and compiled with the option/MDD.

I use the instant client libraries.


If anyone has experienced this?

It seems I was a little liberal with the displacement of libraries linked to in the instant client, i.e. copy the lib file and function of .dll files to another location.

Execution of the executable in the instant client directory with present all the dll solved this problem. I didn't because DependencyWalker said

me, everything was fine.

Tags: Database

Similar Questions

  • Problem with Visual Studio 2010, c# and SQL Server

    Several years ago, I programmed in Fortran. In order to get my stack of punch cards to run, I needed a couple of cards that said to the central computer what to do; It was very difficult to get this information as if it were some sort of secret. Today, I am using Visual Studio 2010, and programming in c#. It seems to work OK, but when I try to create a situation of SQL, I find that Windows authentication does not work; If I connect as long as administrator, I can see the database administrator; If I sign my name, I don't see a database created under my name, so that Windows authentication does not work. It seems that I need to know this little piece of information that nobody wants to tell me. I would like to work with an application that I'm developing, but if I can't trust him, I can't use it. I need seamless connections and unequivocal. Help!

    Hello

    It is not a community forum for Visual Studio.

    Try the Visual Studio forums.

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

    Don

  • Compiling with Visual Studio 2010 beta

    Hello

    I know that only Visual Studio 2005 is supported for the Acrobat SDK kit. But maybe one of you is also experimenting with visual Studio 2010 and got to work.

    I get the following error message. Anyone solves this problem.

    Error error 105 MSB3073: the command "if not"¬roSDKPIDir %"has ==" "has if not exist"% ¬roSDKPIDir"mkdir"% ¬roSDKPIDir""»»
    If not "% ¬roSDKPIDir' a ==" "a 'C:\Users\test\Documents\Visual Studio 2010\Projects\EPapers_Button\EPapers_Button\Debug\EPapers_Button.dll' copy '% ¬roSDKPIDir'"»
    If not "¬roSDKPIDir %" == «"echo EPapers_Button copied to '% ¬roSDKPIDir'.»
    If '% ¬roSDKPIDir' == ""echo not executed. " No value of the AcroSDKPIDir environment variable.

    ': VCEnd ' came out with code 255.

    Thanks for your help.

    I think that you should disable this type of Vista security.  Or you run VS "Run as Administrator".

  • I want to develop a plugin for photoshop cs6... How can I configure SDK on visual studio 2010 and comp

    I want to develop a plugin for photoshop cs6... How can I configure the SDK on visual studio 2010 and compile the code example... I added all the files, but visual studio is not able to find headers files... as they are included...

    Right-click on your project in the Solution Explorer, and select Properties.

    Click on C++-> General-> other Include directories

    Add in the files you need. It does not then you will need to add each file in turn.

    The dissolve example looks like this:

    .. \.. \.. \.. \PhotoshopAPI;...... \.. \.. \PhotoshopAPI\Photoshop;...... \.. \.. \PhotoshopAPI\PICA_ SP;... \Common;...... \.. () \Common\Includes;% AdditionalIncludeDirectories)

  • Strange problem with Visual Studio

    Hello.

    I hope to be in the right section.
    For some time (I can't say precisely how much, maybe since I've upgraded to Windows 10) I have a problem with Visual Studio 2013.
    In practice, after a few minutes, what is open (without doing special things, even just type code) goes down. comes the message "Not responding" and I have to restart to continue working (say that work this way, it becomes impossible).
    I tried to reinstall but I have not solved, I have also the same problem even with Visual Studio 2015.
    The strange thing is that this problem is only with my user account, and with the remote desktop, sessions instead works without problem.
    What is the problem?

    Thanks a lot to all

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • XMP Toolkit with Visual Studio 2010 (or CCG)

    How to compile the XMP Toolkit with Visual Studio 2010 (Professional)?

    When I try to upgrade VS2008 project files, VS says they are "corrupt."

    A solution to compile the XMP Toolkit on Windows using GCC4 would help a lot, but it seems there are a few parameters for several Unix derivatives.

    Hello Duisol,

    Please take a look at the post I made recently on the forum, it includes a fix to add the compilation of gcc on windows.

    http://forums.Adobe.com/message/4421413#4421413

    Matthew

  • I have the version of visual studio 2010 ultimate and aparently there is a beta version of it 2011 and I would like to know if I can install the ultimate version 2011

    Hello, I have the version of visual studio 2010 ultimate and aparently there is a beta version of it 2011 and I would like to know if I can install the 2011 ultimate overwrting the 2010 release of visual studio 2010 ultimate version. should I uninstal it manually first? (even if I deleted the main application, some remained after) what should I do? I need help with this problem because I don't know if I need to uninstall the version of 2010 in order to install the new 2011 beta version or I just have to update like a normal program?

    Hello

    You'd be better suited post directly in the Visual Studio Forum for your questions.

    "" Installation and configuration of visual Studio".

    http://social.msdn.Microsoft.com/forums/en/vssetup/threads

    See you soon.

  • try to install Service Pack 1 for Visual Studio 2010 and I get a Code 13EC

    original title: 13EC error Code

    I am installing Service Pack 1 for Visual Studio 2010 and I get a Code 13EC wrror I don't understand why I get this and how can I reslove it?

    Uninstall .NET Framework 4.0 components, then try the installation again.

    For further assistance, please post in the following forum:
    http://social.msdn.Microsoft.com/forums/en-SG/vssetup/threads

  • Scrolling Touchpad with Visual Studio 2010 problem

    Hallo,

    I had a problem with my type of coverage and Visual Studio 2010.

    I can not get the scroll of two fingers on the Visual Studio 2010 code editor. For unknown reasons, this only works when an initial open an editor window. But the problem is if I change the window or click somewhere else (when he first loses focus after opening).

    Two strange things are first of all, it looks like something (maybe windows itself) blocking the scrolling-signal and tries to move the window visual studio [1] and the second zoom gestures still work perfect to change the size of the text of the edotir.

    I've read that Visual Studio has some scrolling problems but such nut "sometimes I got the signal, sometimes not. So I thought that it is perhaps more a Windows 8.1 - 2 Surface Pro - Surface Type Cover - Bug.

    This problem has been since the beginning of the Installation Visual Studio-(one of the first installations), so I don't think it causes a third party program.

    Next to windows says that all drivers are up-to-date.

    Here is my system:

    Surface Pro 2

    TypeCover 2

    Windows 8.1

    Visual Studio 2010 SP1

    Thanks for the replies.

    Fabian

    [1] the same effect occurs if you want to scroll in Chrome without additonal settings/addons which make possible.

    Hallo Shiho,

    Thank you for your reply and your interest. I checked the problem once again and discovered that this is a problem in visual studio, because it does not block the signal of scrolling, but just go to the wrong window! Even if the cursor focus to the editor, it scrolls in the Properties window. If the cursor is in a function, it displays the properties of this function. Normally this property list is greater that the small window so TI fixers signals scroll to scroll in the list instead in the function code.

    So maybe the solution is just a change on the visual studio settings. The problem is not this more irritating because the work without a property showcase is a temporary solution too.

    Next to with a mouse wheel scrolling works properly (in the Editor window).

    To answer your questions:

    Yes, the view still works in other programs or applications in the Visual Studio property problem.

    Thanks again.

    Fabian

  • I CAN'T GET THE WINDOWS MEDIA PLAYER! Self-registration FAILED with Visual Studio 2010!

    Hello world!

    I just bought the Visual Studio 2010 Professional Edition, registered and everything. I have the Windows XP operating system and I wanted to do a media player using WindowsMediaPlayer, I. I saw on YouTube that all you had to do was simply right click, add click on choose the elements and go to components and click on WindowsMediaPlayer. I couldn't find that if I used Google and found that he had to go in System32, then click wmp.dll. After I did, he said

    "Self-registration impossible C:\WINDOWS\system32\wmp.dll.

    I want this thing so BADLY!

    Any help would be VERY VERY LARGELY APPRECIATED!

    Thank you

    TheElevatorMaster

    Hello
     
    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public to MSDN development.
    Please post your question in the MSDN Visual Studio category. 
     

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • MsWinsock.ocx does not work with Visual Studio 2010 on Windows 7, but works with VS 2005 on Windows 7

    Recently, we had the updates below...

    VS 2005 for VS 2010

    .NET framework 2.0 to 4.0

    Infragistics 8.2 to 11.2 (controls)

    OS - Windows XP to Windows 7

    After the updates above, MSWinsock.ocx created problems with windows 7 that worked Flory with windows XP. Then, we solved this known issue (by registering as an administrator). Basically, we use MSwinsock.ocx for the purpose of generation/report view. Now after you resolve the issue of registration MSwinsock, reporting works very well for VS2005/.net Framework 2.0/infragistics8.2 in machine windows 7 but it does not with VS 2010/.net framework 4.0/infragistics 11.2 in the windows machine 7. Is there something that we are missing to make this work in VS 2010 as well?

    Hi Renon,

    I suggest you to post the question on the forum of Visual Studio support on the link below.

    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?category=VisualStudio

    Feel free to write us if you have any related issue of Windows. We will be happy to help you.

  • compatibility of Windows 7 Home Premium with Visual Studio 2010, Visual Studio 2012, Sql Server 2008 and can be Sql Sever 2012.

    Hi, I'm going to buy a new laptop in which I get Windows 7 Home Premium. I'm going to use MS Visual Studio 2010, Visual Studio 2012, Sql Server 2008 and can be Sql Sever 2012. I'll use the other tools of development also. I just want to know fact these races of software in this operating system.

    It's the operating system have a compatibility issue with these software or other tools of development.

    Best place to look is the MS site for these products and consider the requirements specified

  • I can code an application with visual studio python and javascript

    Hello.

    I just want to ask if I can code an application in javaScript a python with visual studio. I just finished learning how to code with javaScript and almost done with python visual studio supports languages javascript or python? I don't want to lose any data cause my monthly data allowance is 17 GB and I don't want to download something that I won't use

    I just want to ask if I can code an application in javaScript a python with visual studio. I just finished learning how to code with javaScript and almost done with python visual studio supports languages javascript or python? I don't want to lose any data cause my monthly data allowance is 17 GB and I don't want to download something that I won't use

    You mean the IDE?
     
    http://www.ASP.NET/Visual-Studio/Overview/2012/Visual-Studio-2012-JavaScript-editor
    http://www.Hanselminutes.com/384/Python-tools-for-Visual-Studio-with-Dino-viehland

  • Target platform by default the value of Visual Studio 2010

    In Visual Studio 2010, how can I set the default target platform for new projects to x 86? For some models, which already seems the case, but for example for the class library Visual Basic, the default value is Any Cpu and even can not be changed.

    Where I can centrally define that all projects should be directed to the x 86 platform?

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • the upgrade of visual studio 2010 express to visual studio 2010 professional?

    I installed visual studio 2010 express but I want to upgrade to visual studio 2010 professional...
    How can I do it...
    If all possible, pls guide me...

    waiting for response...
    thank you all in advance

    Hello

    I suggest you to ask your question at the following link.

    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?Forum=VSSetup

Maybe you are looking for

  • Record manual drum with Garage band

    How is it possible to save the drum track using the external keyboard with GarageBand? Sorry for the stupid question but I can't find the solution.

  • Satellite L755-M1CU - I can't use WiFi and Bluetooth

    Hey guys I started to level for my windows and I can't use wireless and Bluetooth I need drivers for these means of cards L755-M1CU

  • How do you call by reference to a VI within a PPL?

    Hello I want to dynamically call a VI, but do not want to wait for dependencies of all children of VI load every time, so I've compiled the VI within a packaged project library (PPL). I open a reference in VI by the path of the file by using a strict

  • POWEREDGE 2900 RAID 10 HAS NOT DEGRADED

    Hello I have a Setup raid 10 on a server PowerEdge 2900, Perc 6 / i. There are 4 250 GB drives, set up as a Raid 10. A drive has failed. I tried the disk with a hot swap size even more recent. The server crashed and restarted, Post message showed dur

  • Desktop Window Manager has stopped working after loading of updates 12/10/10 MS

    Once the download and installation of updates for Windows 12/10/10 patches, Desktop Window Manager has stopped working.  Event viewer lists under Applications: Name: ApplicationSource: Application errorDate: 2010-10-13 09:59:47Event ID: 1000Task cate