We help IT Professionals succeed at work.

Visual C++.NET

Microsoft Visual C++ (often abbreviated as MSVC or VC++) is an integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages. It features tools for developing and debugging C++ code, especially code written for the Microsoft Windows API, the DirectX API, and the Microsoft .NET Framework. Many applications require redistributable Visual C++ packages to function correctly and are often installed independently of applications, allowing multiple applications to make use of the package while only having to install it once

Hello,
I would like to change  the name of the printer into a  string.
This is my code that works:
if (GetPrinterDevice(_T("\\\\DSERVER\\Brother HL-7050 series"), &hDevNames, &hDevMode))


I have tried this one, but it will not work:


void CZahlen_SortierenDlg::OnBnClickedButton1()
{
       HANDLE hDevMode;
     HANDLE hDevNames;

       CString D="\\\\\\\\DSERVER\\\\Brother HL-7050 series";
       LPCSTR drucker=(LPCSTR)(LPCSTR)D;



// if (GetPrinterDevice(_T("\\\\DSERVER\\Brother HL-7050 series"), &hDevNames, &hDevMode))


 
 
   if (GetPrinterDevice(drucker), &hDevNames, &hDevMode)
      
     {
          AfxGetApp()->SelectPrinter(hDevNames, hDevMode);

          CPrintDialog dlgPrint(FALSE,PD_PAGENUMS|PD_USEDEVMODECOPIESANDCOLLATE , this);

               //--------------------------- Papier Auswahl DEVMODE ----------------------------------
          if(AfxGetApp()->GetPrinterDeviceDefaults(&dlgPrint.m_pd))
          {               
              LPDEVMODE dev=dlgPrint.GetDevMode();
                GlobalUnlock(dev);
                            
                   dev->dmOrientation=DMORIENT_PORTRAIT;  //Hochformat
                  dev->dmPaperSize=DMPAPER_A4;
               
                dev->dmCopies=1;  
                dev->dmDefaultSource=DMBIN_AUTO;


I will get this error:
errorThank you for your help,
Best regards,
Thomas
0
Hallo,
my code does a hardcopy of my ListView. So that I can print the ListView. I found that code on the internet.
It works just fine on my pc.
But I have one problem. When the user has a different display of his screen/pc, the hardcopy is not correct.
I need to change the code that I have the size and location of the ListView no matter what the display of the screen is.
I hope you understand my problem.

I think I have to change this:
        // get the device context of the screen
          HDC hScreenDC = CreateDC("DISPLAY", NULL, NULL, NULL);    
         // and a device context to put it in
          HDC hMemoryDC = CreateCompatibleDC(hScreenDC);

Please help.

Best regards,
Thomas


 
 //------------------------------------------------------------------
		  CRect pos;
		  m_List.GetWindowRect(pos);
		  ScreenToClient(&pos);
		  UINT flags =SWP_NOSENDCHANGING | SWP_NOACTIVATE | SWP_NOZORDER | SWP_NOMOVE;
  //------------------------------------------------------------------

		  // get the device context of the screen
          HDC hScreenDC = CreateDC("DISPLAY", NULL, NULL, NULL);     
         // and a device context to put it in
          HDC hMemoryDC = CreateCompatibleDC(hScreenDC);

          int width = GetDeviceCaps(hScreenDC, HORZRES);
          int height = GetDeviceCaps(hScreenDC, VERTRES);

         // maybe worth checking these are positive values
          HBITMAP hBitmap = CreateCompatibleBitmap(hScreenDC, width, height);
	
         

Open in new window

0
Hallo,
I need some help with this code that I found on the web.
The code works fine to do a Hardcopy of the complete screen.

But I would like to make a Hardcopy from a part of the screen, size of a rectangle that I would like to add to the code.
But I do not know how to do this, or to change the code.

Thank you for your help.
Best regards,
Thomas


 
        // get the device context of the screen
          HDC hScreenDC = CreateDC("DISPLAY", NULL, NULL, NULL);    

        // and a device context to put it in
          HDC hMemoryDC = CreateCompatibleDC(hScreenDC);

          int width = GetDeviceCaps(hScreenDC, HORZRES);
          int height = GetDeviceCaps(hScreenDC, VERTRES);

         // maybe worth checking these are positive values
          HBITMAP hBitmap = CreateCompatibleBitmap(hScreenDC, width, height);
      
         // get a new bitmap
          HBITMAP hOldBitmap = (HBITMAP) SelectObject(hMemoryDC, hBitmap);

          BitBlt(hMemoryDC, 0, 0, width, height, hScreenDC, 0, 0, SRCCOPY);
          hBitmap = (HBITMAP) SelectObject(hMemoryDC, hOldBitmap);


         // clean up
          DeleteDC(hMemoryDC);
          DeleteDC(hScreenDC);


        // now your image is held in hBitmap. You can save it or do whatever with it



//=========================== Drucken =================================================
       CDC memDC;
       CBitmap bitmap;

       int maxw = …
0
Hello, I'm rather new to C++.  I've been viewing a lot of video training courses to help me learn the syntax, but once I pick that up, I'm off to writing a specific program that I'd like to develop.

I would like to ask whether anyone here knows of any books, PDF, articles or reference material that would help me understand how to use C++ for FileInfo and Disk.IO programming.

I need to develop code that can analyze a hard drive and provide me technical information about that hard drive and about the O/S (i.e. number of sectors, block size, file dates, etc.).

I would need this material to be somewhat specific to the topics I specified above. I'm not looking for a C++ primer for simple coding tasks, I'm looking for something specific for FileInfo and Disk.IO programming.

Thank you for your help,
Fulano
0
Hi
This Morning I tried to run Microsoft SQL Server Management Studio with no response  Going to "C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"

I get the attached error

MSSMSError.JPG
This isn't listed under "Uninstall or change a program"
Trying to reinstall from DL exe hangs

Googling suggests this could be fixed by reinstalling various versions of Microsoft Visual C++  Redistributable  

I've got 8 so am unclear which should be repaired or or if this is the issue

MSC--.JPG
FYI
I'm Running Win10 in an Azure VM which shuts down each evening

I was using this program last night and nothing has been installed since  MS Office 2 days ago prior to last use
0
Hi Experts,

I've got a VB6 application (I am the author) that is crashing without a trace of anything, except a .dmp file (attached).
It crashes when running in the VB6 IDE or as a compiled .exe.

The only error message I can see is:

The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information:      Not Present

Here's the whole Dump Summary (opened in VS 2013):

Dump Summary
------------
Dump File:	HIPAVE.exe.6656.dmp : C:\Users\Leigh\AppData\Local\CrashDumps\HIPAVE.exe.6656.dmp
Last Write Time:	4/03/2019 1:20:56 PM
Process Name:	HIPAVE.exe : D:\Dev-Ver5.0\HIPAVE50\vb6\HIPAVE.exe
Process Architecture:	x86
Exception Code:	0xC0000005
Exception Information:	The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information:	Not Present

System Information
------------------
OS Version:	10.0.17134
CLR Version(s):	

Modules
-------
Module Name	Module Path	Module Version
-----------	-----------	--------------
HIPAVE.exe	D:\Dev-Ver5.0\HIPAVE50\vb6\HIPAVE.exe	5.0.0.732
ntdll.dll	C:\Windows\System32\ntdll.dll	10.0.17134.556
kernel32.dll	C:\Windows\System32\kernel32.dll	10.0.17134.556
KERNELBASE.dll	C:\Windows\System32\KERNELBASE.dll	10.0.17134.556
msvbvm60.dll	C:\Windows\System32\msvbvm60.dll	6.0.98.15
user32.dll	C:\Windows\System32\user32.dll	10.0.17134.376
win32u.dll	C:\Windows\System32\win32u.dll	10.0.17134.1
gdi32.dll	

Open in new window

0
I am trying to customize a print dialog in a MFC app.
I want the "pages" option to be preselected.

In CMyView::OnPreparePrinting(CPrintInfo* pInfo)
I added this at the end of the function:
      pInfo->SetMinPage(10);
      pInfo->SetMaxPage(20);
      pInfo->m_pPD->m_pd.nFromPage = 10;
      pInfo->m_pPD->m_pd.nToPage = 20;
      pInfo->m_pPD->m_nFlags |= PD_PAGENUMS;
      return DoPreparePrinting(pInfo);

When the print dialog comes up, the "all" option is preselected.
0
When I try to run a web application in Visual Studio I get the following error.  It's only occurring with one web application.  Why?  How do I fix???

Unable to connect to the configured development Web server.

Output from IIS Express:
Failed to register URL "http://localhost:1789/"
The process cannot access the file because it is being used by another process. (0x80070020)

Here's my Visual Studio configuration:
Microsoft Visual Studio Professional 2017 
Version 15.8.9
VisualStudio.15.Release/15.8.9+28010.2050
Microsoft .NET Framework
Version 4.7.03190

Installed Version: Professional

Visual C++ 2017   00370-10200-04031-AA118
Microsoft Visual C++ 2017

Application Insights Tools for Visual Studio Package   8.13.10627.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2017   15.8.05085.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services   15.8.31590
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2017   5.2.60618.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.8.05023.0
Azure App Service Tools v3.0.0

C# Tools   2.9.0-beta8-63208-01
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

ConvertToDevExtremeCommand Extension   1.0
ConvertToDevExtremeCommand Visual 

Open in new window

0
I have been assigned  a task to develop  photoshop  sdk in VC++.I  want  photoshop sdk for C++.I  want  to  know  how to use  it?

I  googled  lot of  pages  ,adobe  site  but unable  to download exact C++  sdk and its tutorial.I  created  Adobe  login also  but unable to find where is SDK  download.

I also want help on  how  to  use  that sdk.I am  proefficent with VC++.But  don't know  photoshop. Please  help regarding it.
0
The goal is to get a 64 bit ODBC connection to an Oracle DB. I have to install Oracle Instantclient_11_2 on a fresh install of Windows Server 2012 nothing else. I am getting an error when trying to setup an 64 bit ODBC connection to a database not on this server but the DB is on a different one.  
In order to get Oracle Instantclient_11_2 installed I came across a message that said to install Microsoft Visual C++ 2005 Redistributable Package (x64)  in order to get it working. So I installed it from this link. MSVisualC++2005RedistibutablePackage
I do not know if that is conflicting with this process and I should get an application that is more recent to the Win Server 2012 ??? Does anyone know if I should or could be using a more recent that would not conflict with the Oracle_11_2?
I read and read and found this. So I understand some of it from this link. Side-By-SideConfigurationError
I looked at the event log and get the following.
Activation context generation failed for "C:\Oracle\Instantclient_11_2\SQORAS32.DLL". Dependent Assembly Microsoft.VC80.MFC,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50727.762" could not be found. Please use sxstrace.exe for detailed diagnosis.
Then the Error:
- System

  - Provider

   [ Name]  SideBySide
 
  - …
0
In OnCreate(LPCREATESTRUCT lpCreateStruct) of my View Class I put the timer and create the Static Text
     

  CStatic *pStatic=new CStatic;
        pStatic->Create(_T(""),WS_CHILD|WS_VISIBLE|SS_CENTER,CRect(10,1,150,50),this,IDC_STATIC_TEXT);

      //---------------- für Datum / KW / Zeit ---------------
      SetTimer(1,1000,NULL);  // siehe OnTimer
      //------------------------------------------------------




In OnTimer(UINT nIDEvent) I wrote the following :


     CTime time=CTime::GetCurrentTime();
     m_str_Zeit  = time.Format("%H:%M:%S  ");
     m_str_Datum = time.Format("%d.%m.%Y  KW:");
     m_str_KW    = time.Format("%U");

   
        GetDlgItem(IDC_STATIC_TEXT)->SetWindowText(m_str_Zeit+m_str_Datum+m_str_KW);
       CRect rect;
       GetDlgItem(IDC_STATIC_TEXT)->GetWindowRect(&rect);
       ScreenToClient(&rect);
       InvalidateRect(&rect);
       UpdateWindow();



      

In OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) I did the following:
{
      HBRUSH hbr = CView::OnCtlColor(pDC, pWnd, nCtlColor);

      if(pWnd->GetDlgCtrlID()==IDC_STATIC_TEXT)
      {
            pDC->SetBkMode(TRANSPARENT);
            return reinterpret_cast<HBRUSH>(::GetStockObject(NULL_PEN));
            
      }
      else
      {
            return hbr;
      }


}

The problem:  I would like to show the user the date and time (time running) . I have the transparent text but you see a rectangle in white blinking. How can I fix this?
0
Dell Optiplex 7020, Windows 7 Pro SP1, 64 Bit

I am unable to install the .NET framework.
Windows had become damaged, so I restored it from a previous image backup.
Everything worked fine after the backup except for the .NET framework.

I have downloaded the 4.7.1  stand-alone, but the installer stops with errors.  Same happened with 4.6.2
I used IOBit Uninstaller (free) and removed all the .NET components that could be found there.
I tried to turn off .NET  3 using the Windows features uninstall, but that gave me errors as well.
Features uninstall error
I ran CCleaner Free, did all the registry repairs.  I ran twice because the .NET issues weren't cleaned up after the first run.

I have included the simple Installation log below
Thanks

OS Version = 6.1.7601, SP = 1.0, Platform 2, Service Pack 1
OS Description = Win7 - x64 Service Pack 1
MSI = 5.0.7601.23593
Windows version = amd64_windowsfoundation_31bf3856ad364e35_6.1.7601.17514_none_615fdfe2a739474c.manifest
Windows servicing = 6.1.7601.23505
CommandLine = C:\63b1d77f74f00749cc94e535\\Setup.exe /x86 /x64 /redist
TimeZone = Eastern Daylight Time
Initial LCID = 1033
Using Simultaneous Download and Install mechanism
Operation: Installing
Package Name = Microsoft .NET Framework 4.7.1 Setup
Package Version = 4.7.02558
User Experience Data Collection Policy: Disabled
Number of applicable items: 11
Exe (C:\63b1d77f74f00749cc94e535\SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
0
Hi Experts,

I've got a DataGridView control that includes some columns that are bound to Double fields in my database.

When I edit any of these cells so that they are empty or blank I get this error:

The following exception occurred in the DataGridView:
System.FormatException: Input string was not in a correct format. —> System.FormatException: Input string was not in a correct format.
at System.Number.ParseDoubleString value, NumberStyles options, NumberFormatlnfo numfmt) at System.Double.Parse(String s, NumberStyles style, IFormatProvider provider)
— End of inner exception stack trace — at
System.Windows.Forms.Formatter.lnvokeStringParseMethod( Object value, Type targetType, IFormatProvider formatlnfo) at
System.Windows.Forms.Formatter.ParseObjectlnternal(Object value, Type targetType, Type sourceType, TypeConverter targetConverter, TypeConverter sourceConverter, IFormatProvider formatlnfo, Object formattedNullValue) at System.Windows.Forms.Formatter.ParseObject(Object value, Type targetType, Type sourceType, TypeConverter targetConverter, TypeConverter sourceConverter, IFormatProvider formatlnfo, Object formattedNullValue,
Object dataSourceNullValue) at
System.Windows.Forms.DataGridViewCell.ParseFormattedValu elnternalfType valueType, Object formattedValue, DataGridViewCellStyle cellStyle, TypeConverter formattedValueTypeConverter, TypeConverter valueTypeConverter) at
System.Windows.Forms.DataGridViewCell.ParseFormattedValu e(Object formattedValue, 

Open in new window

0
When building code, I am not seeing my changes.  I've changed a simple Text Header on a page and ran the code and it does not change.
I've cleared my cache, restarted, tried a clean build and am at a loss as to what cold be causing this.

We have tested and this is only happening on React JSX pages.  It doesn't look like Webpack is compiling the changes but rather old code.
0
Hi Experts,

I am trying to debug my vb.net program.

How can I determine what database is being used by a Data Grid View (dgv) control in run time?

My Data Grid View (dgv) control is dgvMaterials.

When my form is loaded and I check the values of dgvMaterials in the Immediate window using ?dgvMaterials, I get this output:

?dgvMaterials
{System.Windows.Forms.DataGridView}
    AccessibilityObject: {ControlAccessibleObject: Owner = System.Windows.Forms.DataGridView}
    AccessibleDefaultActionDescription: Nothing
    AccessibleDescription: Nothing
    AccessibleName: Nothing
    AccessibleRole: Default {-1}
    AdjustedTopLeftHeaderBorderStyle: {DataGridViewAdvancedBorderStyle { All=NotSet, Left=OutsetDouble, Right=Outset, Top=OutsetDouble, Bottom=Outset }}
    AdvancedCellBorderStyle: {DataGridViewAdvancedBorderStyle { All=Single, Left=Single, Right=Single, Top=Single, Bottom=Single }}
    AdvancedColumnHeadersBorderStyle: {DataGridViewAdvancedBorderStyle { All=OutsetPartial, Left=OutsetPartial, Right=OutsetPartial, Top=OutsetPartial, Bottom=OutsetPartial }}
    AdvancedRowHeadersBorderStyle: {DataGridViewAdvancedBorderStyle { All=OutsetPartial, Left=OutsetPartial, Right=OutsetPartial, Top=OutsetPartial, Bottom=OutsetPartial }}
    AllowDrop: False
    AllowUserToAddRows: False
    AllowUserToAddRowsInternal: False
    AllowUserToDeleteRows: False
    AllowUserToDeleteRowsInternal: False
    AllowUserToOrderColumns: False
    AllowUserToResizeColumns: True
  

Open in new window

0
 //-------------------------------------------------------------------------------------------------------------------
   CString m_strConnection = _T("Driver={SQL Server}; Server=DSERVER; Database=OMSDATEN;Uid=;Pwd;");
   CString str_Table=”Customer”;
   LPCSTR Table1 = (LPCSTR)(LPCSTR)str_Table;
   int Sales=0;
   //-------------------------------------------------------------------------------------------------------------------

   _RecordsetPtr rsTipi_1 ("ADODB.Recordset");
    rsTipi_1->Open(Table1, (LPCTSTR) m_strConnection, adOpenForwardOnly,adLockOptimistic, adCmdTable);

   FieldsPtr fldTipi_1 = rsTipi_1->Fields;
   rsTipi_1->Update();

   fldTipi_1->Item["No"]->Value                        =  (LPCSTR) str_No;
   fldTipi_1->Item["Name"]->Value                   =  (LPCSTR) str_Name;
   fldTipi_1->Item["Sales"]->Value                     =  Sales;


   rsTipi_1->Update();
   rsTipi_1->Close();

Open in new window




This works just fine. I can open my sql table Customer and add some new data, but only one row.


But I would like to use an sql query like this:

("SELECT * FROM '%s'  WHERE Order_No='%s'",Table1,(LPCTSTR)str_Order_No)
so I would like to find all rows of my Table “Customer” with Order_No = str_Order_No and change all of these rows with new
data.

I do not know where and how to put the query and change the code?

Please let me know, thank you very much.
Best regards,
Thomas
0
Hello all,

i want to change the backcolor for buttons depends on information from database,
i have form has multiple buttons like this picture bellow.

I have a database table for shops (stores),There is a column in this table that contains the shop number and a column for its status : Yes or No (if rented or empty)

in the model Each shop has a button and this button named as the number of the store number in the database
How can I do for loop to Retrieve store data from the database
and  changes the color of the button depends on the data from the database if it is empty or rented.

thank you,

picture
0
Hello,
can you help me to fix my code.

When I paste the text the result  is not "this is a test"  it is "str_BestellNr", it shows not the content of the string,  just the name of the string.

str_BestellNr="this is a test";

//calling the function
copyToClipboard(str_BestellNr);


//###############################################################################
void CDialogDlg::copyToClipboard(CString str) 
{ 
  
    EmptyClipboard(); 
  
    HGLOBAL hClipboardData; 
    hClipboardData = GlobalAlloc(GMEM_DDESHARE, strlen(str)+1); 
  
    char *pchData; 
    pchData = (char*)GlobalLock(hClipboardData); 
    strcpy(pchData, str); 
  
    GlobalUnlock(hClipboardData); 
  
    SetClipboardData(CF_TEXT, hClipboardData); 
  
    CloseClipboard(); 
} 
  //###############################################################################

Open in new window

Thank you very much for your help.
Best regards,
Thomas
0
Hi Experts,

How do I get the current Windows Region Format, e.g "French (France)" ?

Regards,
Leigh
0
Hello,

I'm trying to change multiple  panel back color depends on data from database,
the data comes from list called mylist  it have a strings with true and false,
so i need to change the back color of panels depends on that data , so if mylist(1) = true i want the back color is green:
this is what i tried  :

Dim p As List(Of Panel) = Me.Controls.OfType(Of Panel).ToList
        For i As Integer = 1 To duration
            If myList(i) = True Then
                p(i).BackColor = Color.SpringGreen
            End If
        Next

Open in new window


but its not working.
0
Hi EE.

Does anyone know how can I make my app to self delete? In VB.NET I use this:
Process.Start("cmd.exe", "/C ping 1.1.1.1 -n 1 -w 3000 > Nul & Del " + 
          Application.ExecutablePath); 
Application.Exit();

Open in new window

How can I also archive that in C++, I'm using Visual C++ 2010 Windows forms.
0
Hi Experts,

I don't get this error when I run my code on my PC, either inside or outside the IDE.

I have created an installer to run in a clean Windows 7 setup on a Virtual PC.

But when I run the .exe in the Windows 7 setup I get this error:

Object reference not set to an instance of an object

No other information about the error is given.

How can I debug the error (without using lots of tracing information)?
Is there any way of configuring my code to output information about the error?

Regards,
Leigh
0
I  am  totally  confused when should I  use  OnPaint,OnDraw,OnCtlColor,OnEraseBkgnd,RedrawWindow
Will  you  please  explain me.When it  will  cause  flicker  and when it will  not?
What  is returning true or false  from Erase background function?
Can any one  brief me  please tomorrow I  have interview over  it.
0
I  am  able to create  resource dll,I  am  able to use  icon inside  dll.But how  to use  dialog  inside  resource dll.
Following  way I  loaded dll,declared  id  globally.For  example now IDD_DIALOG1  is there  in  my dll,how  should I
use  it  to display  as  Modal  or  Modeless

     
  HMODULE hmodule = ::LoadLibrary(_T("C:\\Users\\adityaraoa\\Documents\\Visual Studio 
       2012\\Projects\\Win32Project1\\Debug\\Win32Project1.dll"));
	HRSRC hrsr = ::FindResource(hmodule,MAKEINTRESOURCE(IDD_DIALOG1),RT_DIALOG);
	::LoadResource(hmodule,hrsr);// TODO: Add your control notification handler code here
	//HICON hic = ::LoadIcon(hmodule,MAKEINTRESOURCE(IDI_ICON1));
	//btn.SetIcon(hic);

Open in new window

0
Hello,
my code works just fine and I got no error message.
But how can I check the the delete was done? Like a if - else routine

//%%%%%%%%%%%%%%%%%%%%%%%%%% Löschung %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	//SQL Server
	m_strConnection = _T("Driver={SQL Server}; Server=DSERVER; Database=OMSDATEN;Uid=;Pwd;");
		
	 //-----------------------------------------------------------------------------------------------------------
	//Initialize the Recordset and binding pointers
	m_ptrRs = NULL;   
       m_piAdoRecordBinding = NULL;   

	//Initialize the COM environment
	::CoInitialize(NULL);
	try
	{
		//Create the recordset object
		m_ptrRs.CreateInstance(__uuidof(Recordset));  

     
//======================================= Delete ==============================================================
   sql.Format("DELETE LogBuch FROM LogBuch WHERE Zeitstempel>='%s' AND Zeitstempel<='%s'",str_loeschen_von,str_loeschen_bis);
//============================================================================================================
		 
      _bstr_t bstrQuery(sql);
  
		//Open the recordset object Tabelle 
 m_ptrRs->Open(_variant_t(bstrQuery),(LPCTSTR)m_strConnection, adOpenDynamic, adLockOptimistic, adCmdUnknown);

		//Get a pointer to the record-binding interface Coils
		if(FAILED(m_ptrRs->QueryInterface(__uuidof(IADORecordBinding),(LPVOID *)&m_piAdoRecordBinding)))     _com_issue_error(E_NOINTERFACE);
  
		//Bind the record class to the recordset
	//	

Open in new window

0

Visual C++.NET

Microsoft Visual C++ (often abbreviated as MSVC or VC++) is an integrated development environment (IDE) product from Microsoft for the C, C++, and C++/CLI programming languages. It features tools for developing and debugging C++ code, especially code written for the Microsoft Windows API, the DirectX API, and the Microsoft .NET Framework. Many applications require redistributable Visual C++ packages to function correctly and are often installed independently of applications, allowing multiple applications to make use of the package while only having to install it once

Top Experts In
Visual C++.NET
<
Monthly
>