How to create dll in Visual Studio 2008 in Visual C++

Hello,
I have insatlled Visual Studio 2008. I have to create DLL in Project
type Visual C++.
Which Template i have to select to reate dll, MFC DLL or Class
Library?.
I have to call or import this dll in Windows Forms Application. How
can i do this. Please give details procedure to do this.

If we look at how  AFX_CLASS_EXPORT and AFX_CLASS_IMPORT  are defined in afxv_dll.h we see the following.
#define AFX_CLASS_EXPORT __declspec(dllexport)
#define AFX_CLASS_IMPORT __declspec(dllimport)
So, when exporting our classes from our DLL we want the class declarations from the DLL to look like this:-
class __declspec(dllexport) CMyClass : public CObject
And, when importing our C++ classes into our application we want the class declarations from the DLL to look like this:-
class __declspec(dllimport) CMyClass : public CObject
OK, so here's how I do things.
In the stdafx.h file for the export DLL, include two #defines at the bottom of the file like this:-
#define _MYLIB_DLLAPI_
#define _MYLIB_NOAUTOLIB_
Now, in the main header file for your DLL, say mylib.h (the main 'point of entry' header for your DLL that you will include in you application later), add the following at the top:-
// The following will ensure that we are exporting our C++ classes when
// building the DLL and importing the classes when build an application
// using this DLL.
#ifdef _MYLIB_DLLAPI_
    #define MYLIB_DLLAPI  __declspec( dllexport )
#else
    #define MYLIB_DLLAPI  __declspec( dllimport )
#endif
// The following will ensure that when building an application (or another
// DLL) using this DLL, the appropriate .LIB file will automatically be used
// when linking.
#ifndef _MYLIB_NOAUTOLIB_
#ifdef _DEBUG
#pragma comment(lib, "mylibd.lib")
#else
#pragma comment(lib, "mylib.lib")
#endif
#endif
Now, just declare all the C++ classes you want exported from the DLL like this:-
(Note: Any C++ classes not declared with MYLIB_DLLAPI will not be exported from the DLL)
class MYLIB_DLLAPI CMyClass : public CObject
regards,
Matt John
complete variety of quilts is availabale here!
 PR: wait...
 I: wait...
 L: wait...
 LD: wait...
 I: wait...
wait...
 Rank: wait...
 Traffic: wait...
 Price: wait...
 C: wait...

Similar Messages

  • Visual studio 2008 to visual studio 2013 for Bizunit project

    Hi Friends,
    I am migrating the visual studio2013,biztalk 2013.Part of the I am migrating the solutions in visual studio we have some bizunit projects implemented the VS 2008 now I am planning to migrate the vs2013.I am getting so many errors now.
    Error 31 Custom tool error: Failed to generate code for the service reference 'ServiceReference1'.  Please check other error and warning messages for details. 
    Any idea we upgrade the VS2013 bizunit projects.
    hk

    Hi HK,
    I hope you have installed latest version of BizUnit ie. 4.0 on you machine.
    Bizunit works just fine with BizTalk 2010 but has its few limitation with the higher versions of BizTalk.
    Refer:
    BizUnit compatibility with BizTalk 2013
    I would advice you to raise your issue with codeplex at
    https://bizunit.codeplex.com/workitem/list/basic
    Rachit
    Please mark as answer or vote as helpful if my reply does

  • Looping login screen in Crystal Reports for Visual Studio 2008

    Hello,
    I am using Visual Studio 2008 with the Crystal Reports Basic for Visual Studio 2008. Visual Studio and the Crystal Reports Basic Runtime for Visual Studio 2008 (x64) are installed on both the development and production boxes.  I am using Crystal Reports via Visual Studio and do not have the full blown version of Crystal Reports installed on my machine.
    We have used Visual Studio to create an aspx webpage and would like to use Crystal Reports to display a graph. The report displays fine in debug mode, but displays a looping login screen when moved into production on the web server. The web server is using Windows Server 2008 (x64) with IIS 7. We have tried passing the logon parameters to the crystal report during the page init event with the auto-bind feature enabled on the crystal report viewer. A MySQL database provides the data for the report. All ODBC data sources have been configured the same on both machines. 
    Any help would be greatly appreciated!  Thanks!

    Hello,
    Use a tool called ProcessMonitor from Microsoft and watch what happens when you try to log on.
    Also can you verify you created your DSN using the 64 bit ODBC Admin and that you are using a System DSN so IIS can find it.
    And that the MySQL ODBC drive is also 64 bit?
    If you can read ODBC trace logs you could enable it also and see what error you are getting.
    Thank you
    Don

  • Visual Studio 2008 does not open .rptproj 2008 projects

    I have installed
    - SQL Server 2008 original version with SP1 and the Business Intelligence Development Studio
    - Visual Studio 2008 with SP1.
    I am told that Reporting Services 2008 is part of the Business Intelligence Development Studio 2008,
    however when I try to open my Reporting Services 2008 .rptproj files with Visual Studio 2008, they will not open.
    The error message is:
    'C:\vs2008\CWReportsVS2008\CWReportsVS2008\CWReportsVS2008.rptproj' cannot be opened because its project type (.rptproj) is not supported by this version of the application.
    To open it, please use a version that supports this type of project.
    My VS 2008 cofiguration is:
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers Version 10.0.2531.0
    Microsoft Visual Studio 2008 Version 9.0.30729.4462 QFE Installed Edition: Enterprise
    Microsoft .NET Framework Version 3.5 SP1
    Microsoft Visual Basic 2008, C# 2008, C++ 2008
    Microsoft Visual Studio 2008 Team Explorer
    Microsoft Visual Studio 2008 Tools for Office
    Microsoft Visual Studio Team System 2008 Development Edition
    Microsoft Visual Web Developer 2008
    Crystal Reports Basic for Visual Studio 2008
    Microsoft Visual Studio 2008 Team Explorer - ENU Service Pack 1
    Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1
    Microsoft SQL Server Analysis Services Designer
    Microsoft SQL Server Integration Services Designer
    various hot fixes
    various security updates
    various team foundation updates
    My computer configuration is:
    Windows XP, Professional, Version 2002, Service Pack 3
    My SQL Server Configuration is:
    Microsoft SQL Server Management Studio 10.0.2531.0
    Microsoft Analysis Services Client Tools 10.0.1600.22
    Microsoft Data Access Components (MDAC) 3.85.1132
    Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
    Microsoft Internet Explorer 8.0.6001.18702
    Microsoft .NET Framework 2.0.50727.3615
    Operating System 5.1.2600
    Is there something I haven't installed yet?

    Hi,
    This issue might be caused because your VS2008 did not yet install BIDS report project. So, please open the New Project dialogue to check if there is Business Intelligence Development Studio component in the Project Types pane in your vs 2008. If it
    is not there, install this component (can from the SQL server intallation client tools) so that you can open Reporting Services 2008 .rptproj files in the VS2008.
    thanks,
    Jerry

  • Installa error for visual studio 2005 and Visual C++ 2005 on windows server 2003 SP@

    Not able to install visual studio 2005 I am getting error “The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch” and for visual C++ 2005 after clicking the setup file nothing is displayed on the desktop. please guide. All the above software I am installing on windows server 2003 service pack2
    Dear Gurus Please help me

    You might want to try : MS Visual Studio 2008 and Visual C++ 2008 Express instead as this version is supported as well.
    See:
    For R12: Note 1070674.1 - MS Visual Studio 2008 and Visual C++ 2008 Express for Oracle E-Business Suite Release 12 on Windows
    For 11i : Note 1095124.1 - Microsoft Visual Studio 2008 and Visual C++ 2008 Express for Oracle E-Business Suite Release 11i on Windows
    Regards,
    Ronald

  • C TDMS DLL Visual Studio 2008

    Hello,
    I am pretty new to C/C++ development but I downloaded the C DLL for TDMS reading/writing. First I just opened the readFile.c sample and it said it couldn't find a needed header file. Then I made a new solution in Visual Studio 2008 where I made a c file and an h file and copied in the code from the TDMS C package. During compile I get errors like:
    Error    1    error LNK2019: unresolved external symbol _DDC_GetLibraryErrorDescription@4 referenced in function _main    readTDMS.obj    TDMSNI
    Can someone give me a step by step instruction on how I can run the readFile.c in the Windows console and see it read the data? 

    Did you just create a header file or did you add the nilibddc.h from \dev\include directory as mentioned in the README:
    The 'dev' directory contains the header file, import libraries, and binaries
    to be used during development. 
    Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

  • Create plug-in for Adobe with Visual Studio 2008

    Hi to all, I'm Italian excuse for my english,
    I see Adobe SDK Help, but I don't see something for built a plug-in with Visual Studio 2008, I see only built with Visual Studio 2005!
    my asks is : Because ? Can I create a plug-in with Visual Studio 2008? if yes WHAT did it?
    thanks

    Post your question in the 'Acrobat Developers SDK' forum.

  • What is the best process for creating, opening, editing, etc PDFs from within Visual Studio 2008?

    I am the project manager on a web-based application that will need to:
    Create, open, edit, save, etc PDFs from within a Visual Studio 2008 web application (Visual Basic).
    Populate PDFs from SQL server 2010 database.
    Allow users to use PDF editing tools from within the website.
    BTW, the application is being written in Visual Basic.
    Will the SDK allow us to do this? What licenses do we need to purchase?
    Are there 3rd party plugins that make doing these things much faster and simpler?
    Any input is GREATLY appreciated!!!
    Sincerely,
    Mike

    I don't think Acrobat, or the Acrobat SDK can help you. Acrobat cannot be run on a server.

  • .ard file not created - visual studio 2008

    Hi, I'm creating addon installer for SAP B1 2007 SP1 PL05 running on Windows Server 2008 virtual machine. Visual Studio 2008 and B1DE 2.0 are installed on a Windows 7 virtual machine.
    I followed the steps to create new project using SAP B1 AddOnInstaller .NET Wizard. The AddOnRegDataGen.bat ran automatically when the wizard finished, and I also manually ran the .bat file, but in the bin folder only these 4 files were created:
    Installer.exe, Installer.vshost.exe, Installer.vshost.exe.manifest, Installer.xml
    The .exe file is not using the name I gave to the Installation project, and .ard file is missing.
    In AddonRegDataGen.bat the version is "20090901" - it only contains numbers, so this could not be the problem.
    Please help!

    Hi Yi,
    Could you take a look at AddonRegDataGen.bat under AddOnRegDataGenFile folder?
    Can you find AddOnRegDataGen.exe path as indicated in the 1st line of AddonRegDataGen.bat?
    Typically it is under:
    "C:\Program Files\SAP\SAP Business One SDK\Tools\AddOnRegDataGen\AddOnRegDataGen.exe"
    Please be sure SDK component installed and correct the batch file with the right path of AddOnRegDataGen.exe.
    Then run the batch manually. Or you can create ARD with AddOnRegDataGen.exe directly.
    Kind Regards, Yatsea

  • Crash call stack caused by crdb_adoplus.dll and crqe.dll on Crystal Report for Visual Studio 2008

    Hi There,
    i have an application running on C# .NET which use .NET Framework 3.5 SP1 and Crystal Report for Visual Studio 2008 x64. Now i'm facing the issue in application. suddenly my IIS crash , and the application is logout.
    i have opened advisory case to Microsoft and they help me to analyze the dump from the application when the issue is happened.
    here it is the stack trace :
    STACK_TEXT: 
    00000000`9b1dd160 000007fe`eb93946d : 00000000`9b1dd308 000007fe`eb931948 00000000`00000000 000007fe`eb931610 : verifier!VerifierStopMessage+0x1f0
    00000000`9b1dd210 000007fe`eb939736 : 00000000`9b1ddb50 00000000`00000002 00000000`00000040 00000000`00000004 : verifier!AVrfpDphReportCorruptedBlock+0x2a5
    00000000`9b1dd2d0 000007fe`eb9399cd : 00000000`b32f1000 00000000`9b1ddb50 00000000`00000004 00000000`00001000 : verifier!AVrfpDphCheckNormalHeapBlock+0xce
    00000000`9b1dd340 000007fe`eb93873a : 00000000`9b1ddb50 00000000`01001002 00000000`cca0c3b0 00000000`00000000 : verifier!AVrfpDphNormalHeapFree+0x29
    00000000`9b1dd370 00000000`770b99a5 : 00000000`00000000 00000000`00000000 000007fe`f25514f7 000007ff`05f0a1d1 : verifier!AVrfDebugPageHeapFree+0xb6
    00000000`9b1dd3d0 00000000`7705dbc0 : 00000000`b32f0000 00000000`cc16afb0 00000000`b32f0000 00000000`cc16afb0 : ntdll!RtlDebugFreeHeap+0x35
    00000000`9b1dd430 00000000`7704413d : 00000000`b32f0000 00000000`9968aa01 00000000`00000000 00000000`9b1ddb50 : ntdll!RtlpFreeHeap+0x19a70
    00000000`9b1dd770 00000000`76ef307a : 00000000`00000001 00000000`9968aa40 00000000`9b1dd958 00000000`cc16afb0 : ntdll!RtlFreeHeap+0x1a6
    00000000`9b1dd7f0 00000000`9739cabc : 00000000`00000000 00000000`9968aa40 00000000`000002a3 00000000`cc13ef28 : kernel32!HeapFree+0xa
    00000000`9b1dd820 000007fe`f2550e37 : 00000000`00000000 00000000`24b20fc0 00000000`0000001b 000007ff`0604a340 : msvcr90!free+0x1c
    00000000`9b1dd850 000007ff`05f05802 : 00000000`00000000 000007ff`0604f7c0 00000000`9b1dd958 00000000`9968aa40 : mscorwks!DoNDirectCall__PatchGetThreadCall+0x7b
    00000000`9b1dd8f0 000007ff`05f0a231 : 000007ff`0604f730 000007ff`05f05802 00000000`cc16afb0 00000000`0000001b : DomainBoundILStubClass.IL_STUB(Void*)+0x42
    00000000`9b1dd9b0 000007ff`05f0a1d1 : 00000000`cc16afb0 00000000`000007d4 00000000`9b1dd2e8 00000000`00000000 : crdb_adoplus!<Module>.DbFieldInfo.{dtor}(DbFieldInfo*)+0x11
    00000000`9b1dd9e0 000007ff`05f0a177 : 00000000`0000001c 00000000`cc13ef20 00000000`00000000 00000000`00000000 : crdb_adoplus!<Module>.DbFreeFieldList(UInt32, DbFieldInfo**)+0x31
    00000000`9b1dda30 000007fe`f254f18a : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : DomainBoundILStubClass.IL_STUB(Int32, Int64)+0x7
    00000000`9b1dda60 00000000`9a506b36 : 00000000`0000001c 00000000`cc13ef20 00000000`00000000 00000000`00000000 : mscorwks!UMThunkStubAMD64+0x7a
    00000000`9b1ddaf0 00000000`9a583538 : 00000000`bf35af90 00000000`bf9bcfa0 00000000`9b1ddd30 00000000`00000000 : crqe+0x16b36
    00000000`9b1ddca0 00000000`9a6c1c64 : 00000000`bec28dc0 00000000`cd926e60 00000000`00000000 00000000`cbafcf20 : crqe+0x93538
    00000000`9b1ddf90 00000000`9a6bc697 : 00000000`cd926e60 00000000`00000000 00000000`00000000 00000000`00000000 : crqe+0x1d1c64
    00000000`9b1de000 00000000`b64fcab9 : 00000000`cd926ec0 00000000`9b1de0c0 00000000`00000000 00000000`b6dee2cb : crqe+0x1cc697
    The crdb_adoplus tried free a corrupted Heap Block:
    0:188> dt DPH_BLOCK_INFORMATION 000000009b1ddb50-40
    verifier!DPH_BLOCK_INFORMATION
       +0x000 StartStamp : 0
       +0x004 PaddingStart     : 0
       +0x008 Heap             : 0x00000000`9b1ddb58 Void
       +0x010 RequestedSize    : 0x9b1ddb50
       +0x018 ActualSize       : 0x9b1ddb30
       +0x020 Internal         : _DPH_BLOCK_INTERNAL_INFORMATION
       +0x030 StackTrace       : 0x00000000`00000001 Void
       +0x038 PaddingEnd       : 0
       +0x03c EndStamp         : 0
    is this problem solved by upgrading Crystal Report version to CR12 ?
    Thank you,
    Best Regards,
    Leonardus Tono Amboro
    IT Enterprise System Architect
    PT Astra International Tbk.
    AMDI A Building, 7th Fl.
    Jln. Gaya Motor Raya 8. Sunter II, Jakarta 14330, Indonesia
    Message was edited by: Ludek Uher
    Phone number removed - Please see the SCN Rules of Engagement

    Hi Leonardus
    Please define "crash". What actually happens?
    Did this ever work? E.g.; this started to happen recently?
    Is this happening on your development system or QA or production?
    See if enabling the option "Verify on 1st Refresh" will help.
    Make sure you are using SP 1: Crystal Reports for VS 2005 and  VS 2008 Updates & Runtime Downloads
    Ensure that the dataset is less that a couple thousand rows. Anything more than that will cause issues...
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow me on Twitter

  • Crystal Report 10 in Visual Studio 2008

    Hello,
    Is there a formal process to make Visual Studio 2008 work with Crystal Report version 10? Are there specific files that need to be installed? Any problems to watch for. I currently tried to port Visual Studio 2003 solution that had working Crystal Reports 10 code and I have received some errors relating to ReportDocument (but there could be other). Anyway, maybe there are some basics I am missing.
    Thanks.

    When I double click on the report (.rpt) file, I am getting Microsoft Windows dialog with the following message:
          Microsoft Visual Studio 2008 has stopped working.  
          Windows can try to restart the program.
          --> Restart the program
         --> Debug the Program
    When I click Debug the Program, I see following:
       Unhandled exception at 0x18205950 in devenv.exe: 0xC0000005: Access violation.
       Top 3 Call Stack lines at this point are:
       18205950()
       CRDesigner.dll!3e043d7a()
       [Frames below may be incorrect and/or missing, no symbols loaded for CRDesigner.dll]
       When I click Break in debug window I see:
       No symbols are loaded for any call stack frame. The source code cannot be displayed."
       Windows has triggered a breakpoint in devenv.exe.
       This may be due to a corruption of the heap, which indicates a bug in devenv.exe or any of the DLLs it has loaded.
    I do not see Crystal Reports 10.xx under reference list. How do I go back to the version of reports originally created in? If I am not able to work the Crystal Reports 2008, I want to go back to 10.xx and drop the idea of considering upgrade to Crystal Reports 2008.
    Any help is appreciated. Thanks.

  • Crystal Reports for Visual Studio 2008 - dbf

    Hello,
    I use both Visual Studio 2005 and 2008 on same PC. I can not work with dbf files (format foxpro2x, dbase IV) in VS 2005 and VS 2008.
    Q1. Work Crystal Reports for Visual Studio 2008 with database files - dbf (version foxpro2x, dbaseIV)? I get error -
    Crystal Reports ActiveX Designer
    Failed to load database information
    or with dbf files work only Full version of Crystal Reports?
    Q2. How re-install Crystal Reports for Visual Studio 2008. In setup Add/Remove features not exist Crystal Reports check box. I only Repair/reinstall all Visual Studio but after reinstall same error
    Crystal Reports ActiveX Designer
    Failed to load database information
    3. When I can open sample project with Crystal Reports which use Crystal Reports (dbf file) this error is displayed:
    Crystal Report Viever
    Failed to load database information
    Details: The database DLL "crdb_p2bxbse.dlll" could not be loaded.
    4. I reinstal Crystal Report in Visual Studio 2005 - same error
    5. I apply hotfix Crystal Reports for .NET 2005 - SP 1 - same error
    Thank You
    Ludek

    Hi Ludek,
    1-For dbase file to work you need have permission on database files for IIS as well as user accessing the database.
    2-For re-install you need to insert the CD of visual studio setup then do custom install and then try to choose crystal reports for re-installing
    3-The old viewer might cause the problem. In this case can you try connecting to a blank dbase file.
    and for such issues we have a special forum [here|SAP Crystal Reports, version for Visual Studio;
    Thanks,
    Hitesh Mangtani

  • Oracle 11 g connection with asp dot net in visual studio 2008

    Hi to all,
                  My application is using oracle 11 g as database in an asp dot net project . this was basically a project in asp dot net with sql server as a database . but now this need oracle 11 g as database . I have complete the db work, but i m getting the connection problem in visual studio (2008) with oracle 11 g .
    I know for this it need a driver oracle.data.access  ,, i do nt know which version it need ?
    I have this dll . but version of it may be  earlier. thats why it is not working properly
    i have 11 g installed on the server computer , and we can only use it only on browser , I have a global.asax as a file in my dot net project in which connection string is written but i m getting error , something like ora10cc .
    first i do not know , which odac version i have to download i have  a link for this ,
    http://www.oracle.com/technetwork/database/windows/downloads/index-101290.html
    but which version exactly , this page is so confusing, for oracle 11 g, and visual studio 2008 which version will be perfect
    and then where the dll will be there. after getting  the setup, Is  i need to install that setup?
    one more confusion , where i have to install that odac , on my computer system . or on the server side system , I just need that dll file ,,
    One more thing , Is there any error in my connection string ,,
    my connection is as  follows
    "Persist Security Info=False; User ID= system; Initial Catalog=LabTrack;Server=Comp-34;Data Source=192.168.1.61\oracle11g;Password=abcd1234; DBA Privilege=normal;"
    192.168.1.61 is ip addres of system, where my oracle 11 g is install ,
    and comp-32 is my user name
    labtrack is my db  name
    Is there any need of provider name ?
    sumbody pls help me
    i m getting problem in at from 3 days
    If u can then contact me , on [email protected] , otherwise reply me here
    thanks in advance
    regards Nimish Goel

    The file at the top of that link should work fine with Oracle 11g.
    I would start trying to get the client to work outside of Visual Studio, first.  That way you can localize your issues.
    Once you get the Oracle client connected to the Oracle server, then uou can start working on Visual Studio.
    As for where to install it, I'd say start with your computer.  I'm not sure how you do your development, but that would probably be a good place to start.
    You may want a different download for the web server as I assume you wouldn't need the special Visual Studio tools on it.  But yes, it will need whichever Oracle provider you choose installed on it as well.

  • Windows Vista Home, Visual Studio 2008 sp1, Oracle 11g  Error Access

    Hi:
    Im new in occi for visual studio, im try to do some with occi, i dowloaded and installed vc9 libs and inc and instant client basic and sdk, but i can connect, can you help me?
    this is my history
    First-chance exception at 0x52902721 (GEOM.arx) in acad.exe: 0xC0000005: Access violation reading location 0xfeeefefe.
    Unhandled exception at 0x52902721 (GEOM.arx) in acad.exe: 0xC0000005: Access violation reading location 0xfeeefefe.
    'acad.exe': Loaded 'C:\app\Usser3\product\11.1.0\client_1\instantclient_11_1\vc9\oraocci11.dll'
    'acad.exe': Loaded 'C:\app\Usser3\product\11.1.0\client_1\oci.dll', Binary was not built with debug information.
    'acad.exe': Loaded 'C:\Windows\System32\msvcr71.dll'
    'acad.exe': Loaded 'C:\app\Usser3\product\11.1.0\client_1\oraociei11.dll', Binary was not built with debug information.
    'acad.exe': Loaded 'C:\Program Files\AutoCAD Map 3D 2010\dbghelp.dll'
    The thread 'Win32 Thread' (0x1718) has exited with code 0 (0x0).
    First-chance exception at 0x527b2721 (GEOM.arx) in acad.exe: 0xC0000005: Access violation reading location 0xfeeefefe.
    Unhandled exception at 0x527b2721 (GEOM.arx) in acad.exe: 0xC0000005: Access violation reading location 0xfeeefefe.
    oraociei11.dll     C:\app\Usser3\product\11.1.0\client_1\oraociei11.dll     N/A     N/A     Binary was not built with debug information.          436     OraOCIEI11.dll - 11.1.0.1.0
    oracore11.dll - 11.1.0.7.0 Product     01/10/2008 03:45 a.m.     1A480000-214C1000*     [5728] acad.exe: Native     
         oci.dll     C:\app\Usser3\product\11.1.0\client_1\oci.dll     N/A     N/A     Binary was not built with debug information.          434     11.1.0.1.0     01/10/2008 03:22 a.m.     19C70000-19CF2000*     [5728] acad.exe: Native     
         dbghelp.dll     C:\Program Files\AutoCAD Map 3D 2010\dbghelp.dll     N/A     N/A     Symbols not loaded.          437     6.10.0003.233 (debuggers(dbg).080908-1333)     08/09/2008 03:46 p.m.     520A0000-521BE000     [5728] acad.exe: Native     
         oraocci11.dll     C:\app\Usser3\product\11.1.0\client_1\instantclient_11_1\vc9\oraocci11.dll     N/A     N/A     Symbols not loaded.          433     11.1.0.6.0 Production     20/08/2008 03:45 a.m.     19BE0000-19C67000*     [5728] acad.exe: Native     
    acad.exe': Loaded 'C:\Users\Usser3\Documents\Visual Studio 2008\Projects\GEOM\Win32\Debug\GEOM.arx', Symbols loaded.

    Hi Luis,
    It looks like you are working with a debug build:
    'prueba2_oci.exe': Loaded 'C:\Users\Usser3\Documents\Visual Studio 2008\Projects\prueba2_oci\Debug\prueba2_oci.exe', Symbols loaded. <=== I see Debug in the path, so this looks like a debug build.
    But then further down in your output I see this:
    'prueba2_oci.exe': Loaded 'C:\instantclient_11_1\vc9\oraocci11.dll' <=== This is the release build of OCCI dll not the debug build.
    You appear to be mixing debug and release libraries which will not work correctly.
    This is in the following step in the blog post:
    "Expand Configuration Properties node, expand Linker node, select Input item, enter "oraocci11d.lib" for a debug build or "oraocci11.lib" for a release build."
    If you are creating a debug build you need to use oraocci11d.lib as input to the linker.
    You use oraocci11.lib as input to the linker for the release build.
    For your reference, this is what you should see in the output window in Visual Studio for the debug execution:
    'OCCITest.exe': Loaded 'C:\Projects\OCCITest\Debug\OCCITest.exe', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
    'OCCITest.exe': Loaded 'C:\instantclient_11_1\vc9\oraocci11d.dll'  <=== Notice this is the debug version of the occi library (oraocci11d.dll not oraocci11.dll)
    'OCCITest.exe': Loaded 'C:\instantclient_11_1\oci.dll', Binary was not built with debug information.
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\psapi.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcr90d.dll', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_597c3456\msvcp90d.dll', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\instantclient_11_1\oraociei11.dll', Binary was not built with debug information.
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\shell32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\ole32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\iphlpapi.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\crypt32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\msasn1.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\dbghelp.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\version.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\imm32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\comctl32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\userenv.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\mswsock.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\dnsapi.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\winrnr.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\wldap32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\rasadhlp.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\hnetcfg.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\wshtcpip.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\netapi32.dll'
    'OCCITest.exe': Unloaded 'C:\WINDOWS\system32\netapi32.dll'
    'OCCITest.exe': Loaded 'C:\WINDOWS\system32\msctf.dll'
    The program '[776] OCCITest.exe: Native' has exited with code 0 (0x0).EDIT: Can you check to make sure you are linking the correct library and let us know if that works?
    Regards,
    Mark

  • Slow first connection using Oracle 10g xe and Visual Studio 2008

    {noformat}
    Good day,
    I'm slightly unaccustomed to using forums, so bear with me.
    My initial connection to the Oracle database takes approximately 30 seconds. It seems to be waiting for a connection before timing out and trying another connection which works, as all subsequent connections work immediately. I'm unsure how other people's responses in forums can help me due to the plethora of configurations, so here's mine. My comprehension of the oracle world is still growing, you'll have to explain the terms you're using for me, Hoping you can help.
    I'm using Visual Studio 2008, set to use 32 bit debug mode, on a Windows 7 Pro platform. Also using Oracle 10g Xe, and have installed the 32 bit version of ODAC 11.2 (11.2.0.1) to aid making a connection from Visual Studio to Oracle.
    I have a database set up and a user with system admin rights. This is all local for a programming project and will never see the light of day outside of my personal machine.
    I am using code to connect, not the GUI. I wish to code this project completely without the aid of the GUI. so my connection string within Visual Studio C# is (pw/id hidden)...
    string xe = "Data Source=xe;User Id=xxxxx;Password=xxxxx;";
    OracleConnection conn = new OracleConnection(xe);
    My c:\devsuitehome\network\admin\sqlnet.ora file is this:
    # sqlnet.ora Network Configuration File: C:\DevSuiteHome\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, EZCONNECT, ONAMES, HOSTNAME)
    And my c:\devsuitehome\network\admin\TNSNames.ora file is this:
    tnsnames.ora Network Configuration File: C:\DevSuiteHome\network\admin\tnsnames.ora
    Generated by Oracle configuration tools.
    XE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = xe)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <machine name)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    Just for good measure, my tnsping xe shows:
    "Used paramter files:<br/>
    c:\devsuitehome\network\admin\sqlnet.ora<br/><br/>
    Used TNSNAMES adapter to resolve the alias<br/>
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = xe)))
    OK (0 msec)"
    So, how can I make that initial connection faster so I don't spend 15 years testing my application due to slow start-ups? :)
    Thank you.
    Kevin.
    {noformat}
    Edited by: 832285 on Jan 29, 2011 10:08 AM
    Edited by: 832285 on Jan 29, 2011 10:10 AM

    I have formatted my hard drive since my first post. I was running window 64 bit with a higher version of the ODAC and that proved to crash my machine with faulty error messages about memory. I have reverted to a previous version of the ODAC tools and everything works very smooth now. Still the connection time is consistently 20 seconds or longer on the first attempt.
    Just a little more information.. I am currently taking a college course with 15 other students, as you can tell by the impersonal machine name, where programming using visual studio 2008, and Oracle 10g xe is expected. All of us are using a 64 bit environment and we all have difficulties cutting down the load time of making the first connection to Oracle. Some people are longer making the connection, but none are shorter.
    One other note. After the first connection is made, taking 20 or more seconds, and is closed, all subsequent openings of the connection are instantaneous, for all of us.
    If there is ANYTHING more I can get for you, please let me know. With my environment stable as it is, I will not need to format or change any information for the foreseeable future.
    Here is the information you requested
    1 The connection method I am using, I have chosen the manual connection for you, however the delay exists if the connection is made through the GUI as well.
    Historically, I am getting slow connection speeds through adding the connection through the GUI or by a manual connection. Here is how I am doing it manually. I have the connection being created in 20 seconds, which is the best I can get.
    Imports Oracle.DataAccess.Client
    Also included project reference: oracle.dataaccess / version 2.111.6.20
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            Dim connString As String = "Data Source=XE;User Id=abc;Password=abc;"
            Dim con As OracleConnection = New OracleConnection()
            con.ConnectionString = connString
            Try
                con.Open()
                MessageBox.Show("Connected!")
                con.Close()
                con.Dispose()
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
        End SubMy current TNS Ping results
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 16-FEB-2011 01:02:36
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    Used parameter files:
    C:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    OK (0 msec)2 Connection to SQL plus is instantaneous.
    I fought for weeks about the ODAC version 11.2.0.1 that you see in the previous post, and that would be a whole new thread. Suffice it to say I have a reliable environment to program in with this 10.2.0.1.0 version that I am running now, and the connection time has not changed, it is still minimum 20 seconds load time, sometimes up to 25.
    3 Ram usage in my typical environment
    I am running this laptop with 4 gigs of ram. This is a typical environment I would be running my application in.
    Physical memory
    total 4090
    cached 1753
    available 2345
    free 656
    system
    handles 27141
    threads 911
    processes 70
    commit megs 2860/8179
    kernel memory megs
    paged 201
    nonpaged 52
    4 I formatted my machine and reinstalled the Windows 7 professional operating system as of a few nights ago. The Oracle software on my machine is
    Oracle Database 10g express edition
    ODAC 11.1.0
    I amm not sure what filename you would need in addition to the product names that I have installed.
    5 The information from the SET command is
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\stepheke\AppData\Roaming
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=STEKEV0908
    ComSpec=C:\Windows\system32\cmd.exe
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\stepheke
    LOCALAPPDATA=C:\Users\stepheke\AppData\Local
    LOGONSERVER=\\STEKEV0908
    NUMBER_OF_PROCESSORS=2
    oracle_sid=xe
    OS=Windows_NT
    Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Oracleapp\stepheke\product\11.1.0\client_1;C:\Oracleapp\stepheke\product\11.1.0\client_1\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Windows Live\Shared
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=170a
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\stepheke\AppData\Local\Temp
    TMP=C:\Users\stepheke\AppData\Local\Temp
    USERDOMAIN=stekev0908
    USERNAME=stepheke
    USERPROFILE=C:\Users\stepheke
    VS90COMNTOOLS=c:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
    windir=C:\Windows

Maybe you are looking for

  • WebLogic Admin Server (9.1)is not running.

    When I was trying to start Admin, it gives "There are nested errors" error message.

  • Room Finder issue

    Hi Everyone, Our employees are currently having a very annoying issue regarding Calendar Scheduling Assistant in Outlook 2013. Here are the steps: - In the Room Finder Panel, user select Room List A - Once all the available rooms populated, the name

  • Custom Calculation terminated with Essbase error 1200685 in POV

    I'm trying to improve the efficiency of an ASO calculation script by limiting the scope of the calculation using a filter within the POV. When I do this, I get an error that says MDX error: A symmetric set expression is expected. Custom Calculation t

  • Exchange 2007 - The XML document ended unexpectedly.

    Hello, I'm trying to connect with a exchange server 2007 sp3 through EWS.  I can connect but when I try to retrieve a calendar item I'm getting this error:  The XML document ended unexpectedly. It seems that the EWS/Exchange isn't well configurated.

  • Incentive Compensation Reports

    Hi all, In OIC, YTD summary report is diffenently displayed for different users. When the user is a salesrep then the report shows only total values, it didn't show periods and years. But if the user is not a salesrep then it shows all the periods an