Quantcast
Channel: Visual C forum
Viewing all 15302 articles
Browse latest View live

C++/CLI error with c_str

$
0
0

I have a String of sentences and I want get a list of all punctuation marks used in those sentences. After searching online, the c_str seems the simplest way I can achieve this.

String^ sentences;
String^  s2 = ",";
strstr(sentences->c_str(), s2->c_str());
datagridview->Rows[0]->Cells[1]->Value = s2;


Convert MFC application into windows 10 material design.

$
0
0

We have MFC application and we want to redesign this application with better look and fill using windows 10 material design.

Is it possible to redesign MFC application into windows 10 material design ?

As We are totally new to this technology, It would be very helpful to  us if some basic examples are provided.  

Thanks.


VC++ 2015 ATL, DllRegisterServer fails with 0Xc0000005 on Windows 2003

$
0
0

I ran into a problem with VC++ 2015 ATL.

This is an in-proc COM DLL server built as follows:
Platform toolset: Visual Studio 2015 – Windows XP (V140_xp)
Runtime Library: statically linked (/MT)
Build Platform:    Win32

Code is extremely simple. Just what the project wizard generates plus a COM object with an empty method.

PROBLEM
The COM registration fails on Windows 2003 but succeeds on later platforms. I tested:
Windows 2003 (x86) – FAIL 0Xc0000005
Windows 2003 (x64) – FAIL 0Xc0000005
Windows 2008 (x64) - SUCCESS
Windows 2012 R2 (x64) - SUCCESS
Windows 8.1 (x64) - SUCCESS
Windows 10 (x64) – SUCCESS

I also installed VC++ 2015 on a second machine (that already had VS 2012), built a new ATL object from scratch and had the same results when using the platform toolset:
Visual Studio 2015 – Windows XP (V140_xp)

However on this machine I also built the same DLL using the toolset:
Visual Studio 2012 – Windows XP (V110_xp)

With the 2012 toolset the DLL installed fine on all platforms.
So the problem clearly concerns the VS2015 Windows XP toolset.


Developer for WinDeveloper IMF Tune extending Exchange 2003/2007/2010/2013 Content Filter - http://www.windeveloper.com/imftune/

msvcp100.dll mising on windows 10

$
0
0
Where can I get the DLL from and where does it need to be saved for programmes to access it.

C++/CLI how to separate text without using split function ?

$
0
0
When I use split function on the text it also removes symbols by splitting them, is there another way to separate text without removing those symbols ?

Hello guys/girls are there any code wizards that would convert this to c++ for me?

$
0
0
public class ParkedCar
{
   private String make;
   private String model;
   private String color;
   private String licenseNumber;
   public int minutes;

   //Constructor with no arguments
   public ParkedCar()
   {
      make = "";
      model = "";
      color = "";
      licenseNumber = "";
      minutes = 0;
   }

   //constructor with arguments
   public ParkedCar(String cMake, String cModel,
                    String cColor, String cLicenseNum, int cMinutes)
   {
      make = cMake;
      model = cModel;
      color = cColor;
      licenseNumber = cLicenseNum;
      minutes = cMinutes;
   }

   //The set method sets a value for each field
   public void set(String carMake, String carModel,
                   String carColor, String carLicenseNum,
                   int carMinutes)
   {
      make = carMake;
      model = carModel;
      color = carColor;
      licenseNumber = carLicenseNum;
      minutes = carMinutes;
   }

   //copy constructor initializes
   //the object as a copy of another
   //instructor object.
   public ParkedCar(ParkedCar object2)
   {
      make = object2.make;
      model = object2.model;
      color = object2.color;
      licenseNumber = object2.licenseNumber;
      minutes = object2.minutes;
   }

   public String getMake()
   {
      return make;
   }

   public String getModel()
   {
      return model;
   }

   public String getColor()
   {
      return color;
   }

   public String getLicenseNumber()
   {
      return licenseNumber;
   }

   public int getMinutes()
   {
      return minutes;
   }

   //converts everything into a string
   public String toString()
   {
      String str = "\nMake: " + make +"\nModel: " + model +"\nColor: " + color +"\nLicense number: " + licenseNumber +"\nMinutes parked: " + minutes;
      return str;
   }

   //comparing
   public boolean equals(ParkedCar ParkedCar2)
   {
      boolean status;

      if(make.equals(ParkedCar2.make) &&
         model.equals(ParkedCar2.model) &&
         color.equals(ParkedCar2.color) &&
         licenseNumber.equals(ParkedCar2.licenseNumber))

         status = true;
      else
         status = false;

      return status;
   }
}

public class ParkingMeter
{
   public int minutesPurchased;

   //with no arguments
   public ParkingMeter()
   {
      minutesPurchased = 0;
   }

   //constructor with arguments
   public ParkingMeter(int purchase)
   {
      minutesPurchased = purchase;
   }

   //set method
   public void set(int purchase)
   {
      minutesPurchased = purchase;
   }

   //return method
   public int getMinutesPurchased()
   {
      return minutesPurchased;
   }

   public ParkingMeter(ParkingMeter object2)
   {
      minutesPurchased = object2.minutesPurchased;
   }

   public String toString()
   {
      String str = "\nMinutes purchased: " + minutesPurchased;

      return str;
   }

   public boolean equals(ParkingMeter ParkingMeter2)
   {
      boolean status;

      if(minutesPurchased == ParkingMeter2.minutesPurchased)
         status = true;
      else
         status = false;

      return status;
   }
}

public class ParkingTicket
{
   private ParkedCar car;
   private PoliceOfficer officer;
   private ParkingMeter meter;
   double baseFine = 25.0;
   double hourlyFine = 10.0;




   public ParkingTicket()
   {
      car = new ParkedCar();
     officer = new PoliceOfficer();
      meter = new ParkingMeter();
   }

   public ParkingTicket(ParkedCar c, PoliceOfficer o,
                        ParkingMeter m)
   {
      car = new ParkedCar(c);
      officer = new PoliceOfficer(o);
      meter = new ParkingMeter(m);
   }

   public ParkingTicket(ParkingTicket object2)
   {
      car = object2.car;
      officer = object2.officer;
      meter = object2.meter;

   }

   public ParkedCar getParkedCar()
   {
      return new ParkedCar(car);
   }

   public PoliceOfficer getPoliceOfficer()
   {
      return new PoliceOfficer(officer);
   }

   public ParkingMeter getParkingMeter()
   {
      return new ParkingMeter(meter);
   }

   public double getFine()
   {
      double ticket;

      if (car.minutes <= meter.minutesPurchased)
      {
         ticket = 0;
      }
      else
         ticket = baseFine + (hourlyFine * ((car.minutes - meter.minutesPurchased) / 60));

      return ticket;

   }

   public String toString()
   {
      String str = "\nVehicle information:\n" +
                  car +"\n\nOfficer information:\n" +
                  officer +"\nFine: $" + getFine();
      return str;
   }

   public boolean equals(ParkingTicket ParkingTicket2)
   {
      boolean status;

      if(car.equals(ParkingTicket2.car) &&
         officer.equals(ParkingTicket2.officer) &&
         meter.equals(ParkingTicket2.meter) &&
         getFine() == ParkingTicket2.getFine())

         status = true;
      else
         status = false;

      return status;
   }
}

public class PoliceOfficer
{
   private String name;
   private int badgeNumber;

   private ParkedCar car;
   private ParkingMeter meter;
   public ParkingTicket ticket;


   public PoliceOfficer()
   {
      name = "";
      badgeNumber = 0;
      car = new ParkedCar();
      meter = new ParkingMeter();
      ticket = new ParkingTicket();
   }

   public PoliceOfficer(String officerName, int officerBadge)

   {
      name = officerName;
      badgeNumber = officerBadge;
   }

   public void set(String officerName, int officerBadge)
   {
      name = officerName;
      badgeNumber = officerBadge;
   }

   public PoliceOfficer(PoliceOfficer object2)
   {
      name = object2.name;
      badgeNumber = object2.badgeNumber;
   }

   public String getOfficerName()
   {
      return name;
   }

   public int getOfficerBadgeNumber()
   {
      return badgeNumber;
   }


    public ParkedCar getParkedCar()
   {
      return new ParkedCar(car);
   }

   public ParkingMeter getParkingMeter()
   {
      return new ParkingMeter(meter);
   }

   public ParkingTicket getParkingTicket()
   {
      return new ParkingTicket(ticket);
   }

   public ParkingTicket ticket(ParkedCar car, ParkingMeter meter)
   {

      if(car.minutes > meter.minutesPurchased)
         return new ParkingTicket(ticket);
      else
         return null;
   }

   public String toString()
   {
      String str = "\nOfficer name: " + name +"\nBadge number: " + badgeNumber;
      return str;
   }

   public boolean equals(PoliceOfficer PoliceOfficer2)
   {
      boolean status;

      if(name.equals(PoliceOfficer2.name) &&
         badgeNumber == PoliceOfficer2.badgeNumber &&
         ticket.equals(PoliceOfficer2.ticket))
         status = true;
      else
         status = false;

      return status;
   }
}

public class ParkingTicketDemo { public static void main(String[] args) { ParkedCar myCar = new ParkedCar("Ford", "Mustang","Red", "LMJCD",40); ParkingMeter myMeter = new ParkingMeter(60); PoliceOfficer myOfficer = new PoliceOfficer("Dane", 5565); ParkingTicket myTicket = new ParkingTicket(myCar,myOfficer, myMeter); System.out.println(myMeter); System.out.println(myTicket); } }

How to pass pointer of pointer

$
0
0

This is a function declaration.

  long InitBitmapProcess (HWND hWnd, pBITMAPHANDLE FAR * ppBitmap, bool bMode);

And this is a colling part.

   lRet = InitBitmapProcess(hWnd, &MyBitmap, FALSE);

If I compile, error occurs at &MyBitmap.

Bitmap is declared like following.

   BITMAPHANDLE MyBitmap;

How could I pass 2'nd parameter in the InitBitmapProcess() function correctly?

Direct Rendering nv12 format without any conversion using directx 11???

$
0
0
how to copy nv12 format data in texture and rendering using directx 11 ??? it is  possible to direct nv12 format rendering in directx 11(C++)??

the color of key word is not effective for operator(key words).

$
0
0

hi,

     I have a problen that the color of key words is not effective for operator(key words) in VS2013 c++ . But the color of operator(key words) is the function color. there is no the problem in the VS2012 c++;

i develope the c program,and get the error.please reason send me

$
0
0


#include<stdio.h>
#include<conio.h>
int main()
{
   int i, j, k;
   char str[100];
   char rev[100];
   printf("Enter a string\t");
   scanf_s("%s", str);
   printf("The original string is %s", str);
   for(i = 0; str[i] != '\0'; i++);
   {
      k = i-1;
   }
   for(j = 0; j <= i-1; j++)
   {
      rev[j] = str[k];
      k--;
   }
   printf("The reverse string is %s", rev);
   return 0;
}

Clang 3.7 with Microsoft CodeGen error

$
0
0

Hi,

I just created a console C++ project with all the defaults. The project compiles ok using the ms compiler (Visual Studio 2015 (v140)), however when I switch to cland, I get this error:

1>------ Rebuild All started: Project: ConsoleApplication1, Configuration: Debug x64 ------
1>  stdafx.cpp
1>  stdafx.h
1>  stdafx.h
1>clang.exe : error : cannot specify -o when generating multiple output files
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

More generally, is there a blog/doc describing exactly what works and what does not yet?

Thanks,

G.

vs 2015 update 1 error 'cannot open file 'kernel32.lib'

$
0
0

Hi,

After installing the update 1, the most simple win32 project (all defaults) fails to compile when selecting 32 bit. All works in 64 bit. 

Something else: the configurations created are x64 and x86 (not win32). However when I open the configuration manager and select x86 for the solution, for each project I see win32?! Kind of strange...

Anyway the important issue is the kernel32.lib. I have never seen this kind of 32 bit app error?

G.

C++/CLI replace and split functions

$
0
0

I'm using replace and split functions together, but it doesn't work how to suppose to. Any suggestions or advice ?

String^ text = textBox1->Text;
cli::array<String^>^ sentences = text->Replace('.', '.qx')->Split('qx');
datagridview->Rows[0]->Cells[1]->Value = sentence;

Visual Studio 2015 cannot produce an ATL Dll that successfully registers on Windows XP

$
0
0
I have a legacy project that I am porting to Win 10. We need to keep compatibility with Windows XP, and I have been unsuccessful in getting the converted projects to even register under XP. In an effort to understand what is necessary (after many weeks of searching both Stack Overflow and MSDN), I attempted to create an ATL-based Dll from scratch using VS 2015 - and it doesn't work. Before going further, let me get a few things out of the way:

1) Yes, I have installed VS 2015 with the C++ support for XP enabled.
2) Yes, I have set the platform toolset to XP
3) Yes, I have installed the VS 2015 x86 redistributable package on the XP target

If I just go through the ATL project wizard and stop before adding any COM interfaces, the Dll successfully registers on XP. If I add an interface without any methods, regsvr32 fails with return code 0xc0000005. If I add a method to the interface, and supply an implementation, it continues to fail in the same manner. 

If you can supply the missing piece, I'd be grateful. The process I go through to generate a minimal Dll takes about 5 minutes of effort, here are my steps (settings are chosen to best approximate the Dll I want to port):

Required environments:

You will need a Win 10 system with Visual Studio 2015 installed with XP Support enabled (you will get build errors if the XP C++ support option was not checked at install time; it is not a default option), and

A Windows XP system with VS 2015 x86 redistributable installed (available here: https://www.microsoft.com/en-us/download/details.aspx?id=48145)

Open VS 2015, select File/New/New Project…

• From the Installed/Templates/Visual C++/Windows Tree on the left hand side of the dialog, select “ATL” as the project type filter, 
• Select “ATL Project” as the project type from the template list in the center of the dialog. 
• Select “.NET Framework 3.5” as the .NET Framework from the drop down list at the top of the dialog
• Name the project “DllHoopty”, 
• Select the “Create directory for solution” option at the bottom right of the dialog. 
• Click OK to begin the project wizard.

When the Project wizard appears, the current project settings should be “Dynamic-Link Library”. 

• Click “Next”, NOT “Finish”

On the “Application Settings” page:

• Select “Allow merging of proxy/stub code”, 
• DESELECT “Security Development Lifecycle (SDL) checks”. 
• Leave “Support MFC” and “Support COM+ 1.0” unchecked. 
• Click “Finish” to create the project & solution.

When the project/solution has been created:

• Select “Release” as the configuration, and “x86” as the platform.
• Right click on the DllHoopty project, and select “Properties”. 
• In the properties dialog, make sure the Configuration and Platform are “Release” and “Win32”, respectively
• If it isn’t already selected, go to the “Configuration Properties/General” panel
• Change the “Platform Toolset” to “Visual Studio 2015 - Windows XP (v140_xp)”
• Click OK to save the changes and dismiss the properties panel.

If you stop here and build the solution, the dll that is produced will SUCCESSFULLY register.

Right click on the DllHoopty project, and select “Add/Class…” from the popup menu to bring up the Add Class dialog
• Select “Installed/Visual C++/ATL” from the tree, and “ATL Simple Object” from the template list
• Click “Add” to begin the ATL Simple Object Wizard.

• On the “Welcome to the ATL Simple Object Wizard” page, give the object a “Short name” of Hoopty. This will cause all the other fields to be filled in. 
• Click “Next”.
• Click “Next” on the “File Type Handler Options” page

On the “Options” page:
• Select “Single” as the threading model, 
• Select “No” as the “Aggregation” option, 
• Select “Custom” as the “Interface” option. 
• Leave the “Automation compatible” box under “Custom” unchecked. 
• All of the “Support” boxes should be unchecked.  
• Click “Finish”

At this point and beyond, any dll produced will fail to register with the message “DllRegisterServer in DllHoopty.dll failed. Return code was 0xc0000005”

Open the file “DllHoopty.idl”, 
• add “HRESULT Wub();” to the “interface IHoopty”, e.g. change it to read:

    interface IHoopty : IUnknown{
    HRESULT Wub();
    };

Open “Hoopty.h” 
• add:

     STDMETHOD(Wub)();

to the public: section at the end of the CHoopty class declaration

Open “Hoopty.cpp” 
• add:

    STDMETHODIMP CHoopty::Wub()
    {
    return S_OK;
    }

Build the project (making sure  Release/x86 is the selected config & platform)

• Move “DllHoopty.dll” to local hard drive (NOT a shared folder if you are using VMs with VirtualBox, as I do) on the Win XP machine with the C++ redistributable installed. 

On the XP machine:
• Bring up a command prompt, 
• Navigate to the location of DllHoopty.dll, 
• run “regsvr32 DllHoopty.dll”. 

If my guess is correct, you will get an error dialog:

“DllRegisterServer in DllHoopty.dll failed. Return code was: 0xc0000005”

I have tried many, many things: Adding defines for WINVER 0x0501, _WIN32_WINNT 0x0501,  _ATL_XP_TARGETING, and so many others I have forgotten. Nothing changes the outcome.





How to connect proxy any app Visual C++


Question about function - WideCharToMultiByte for codePage cp866 for platform Windows Compact 7.0

$
0
0

My aim is to convert Wide Character (string of type wchar_t) to DOS ascii for codepage 866 - DOS:Cyrillic. I wrote a sample program using visual studio 2008 on desktop Windows 7. The function is able to convert string successfully.

However, the same function for windows compact 7 has been compiled successfully, but it does not do conversion successfully. It gives error - ERROR_INVALID_PARAMETER. After a couple of investigation, I realized there is no parameter is invalid, if I use default codePage  CP_ACP or CP_UTF8, there is no such error (though it does not serve my purpose, I need the conversion for codePage 866).

My Question is, is to confirm that the function WideCharToMultiByte(.....) for codePage 866 has some inherent problem over windows Compact 7 ? The response to my question help me to seek alternative way. 

Shekhar

CumminsAllison (mehtas@cumminsallison.com)

Different results for FindWindow() when privs are elevated

$
0
0

I'm using FindWindow() to detect when ftp.exe has finished downloading files... it works fine when in normal permissions, but when the program is running under elevated privs FindWindow() bails returning NULL no matter what.

Is this expected?  Is there some rationale for this? I saw another thread where it was suggested to do a GetLastError() on FindWindow()... I did this, it returns zero... perfectly happy to not do its job.

I realise FW is a hack... but I don't want to burden the system by polling once a second for all running apps to try to find ftp.exe.  I can put a check in my app that disallows the FTP when permissions are elevated... there are other places (during config) when these are needed, or I wouldn't have a problem).

Any clues?

C++ bank account getting -9.255963+061 for account number and balance need help

$
0
0
#ifndef BankAccount_H
#define BankAccount_H
#include<iostream>

using namespace std;
class BankAccount
{

public:

int accountNumber;
double balance;

//Constructor
BankAccount(int ano,double bal)
{
accountNumber=ano;
balance=bal;
}
BankAccount() { }
public:
//Accessor methods for getting balance
double getBalance()
{
return(balance);
}
//Accessor methods for getting account number
int getAccountNumber()
{
return(accountNumber);
}
//Mutuator method to set balance
void setBalance(double amount)
{
balance=amount;
}
//Setting account number
void setAccountNumber(int ano)
{
accountNumber=ano;
}

//show account information
void showAccountInfo()
{
cout<<"Account Number :"<<accountNumber<<endl;
cout<<"Account Balance:"<<balance<<endl;
}

//function to perform deposit
double depositAmount(double damount)
{

balance=balance+damount;
return(balance);
}

//withdrawl amount
double withDrawAmount(double wamount)
{
balance=balance-wamount;
return(balance);
}
};
#endif

#include <iomanip>
#include <iostream>
#include <cmath>

#ifndef SavingsAccount_H
#define SavingsAccount_h

using namespace std;

class SavingAccount: BankAccount
{
//data member
double minBal;
double balance;
double accountNumber;

public:
//Constructor

SavingAccount(int ano , double amount):BankAccount(ano, amount)
{
minBal=500;
}
//to perform deposit
//overriding base class function
double depositAmount(double damount)
{
balance=balance+damount;
return(balance);
}
//to perform withdraw
//overriding base class function
double withDrawAmount(double wamount)
{
if(check())
balance=balance-wamount;
else
cout<<"you have in sufficient balance"<<endl;
return(balance);
}
//Setting minimum balance
void setMinBal(double mbal)
{
minBal=mbal;
}
//Checking for account sufficiency
bool check()
{
if(balance<minBal)
return(false);
else
return(true);
}
//Showing account information
void showAccountInfo()
{
cout<<"Account Number :"<<accountNumber<<endl;
cout<<"Account Balance:"<<balance<<endl;
}
};
#endif

#include <iostream>
#include <iomanip>
#include <cmath>
#include "BankAccount.h"
#ifndef CheckingAccount_H
#define CheckingAccount_h
using namespace std;
class CheckingAccount : BankAccount
{
//Data members
double balance;
double interest;
double minBal;
double serviceCharge;
double accountNumber;

public://Constructore


CheckingAccount(int ano,double amount,double interest):BankAccount( ano, amount)
{
interest= interest;
minBal=500;//By default
}
//To set interest rate
void setInterestRate(double irate)
{
interest=irate;
}
//to get interest rate
double retrieveInterestRate()
{
return(interest);
}
//to set minimum balance
void setMinBal(double mbal)
{
minBal=mbal;
}
//To get minimum balance
double retrieveMinBal()
{
return(minBal);
}
//To set service charge
void setServiceCharge(double scharge)
{
serviceCharge=scharge;
}
//To get service charge
double retrieveServiceCharge()
{
return(serviceCharge);
}
//To perform deposit
//overriding base class function
double depositAmount(double damount)

{
balance=balance+damount;
return(balance);
}

//to perform withdraw
//overriding base class function
double withDrawAmount(double wamount)
{
//Checking for account have sufficient balance or not
if(check())
balance=balance-wamount;
else
cout<<"You have in sufficient balance";
return(balance);
}
//Check function for verifying balance
bool check()
{
if(balance<minBal)
return(false);
else
return(true);
}
//To display account information
void showAccountInfo()
{
cout<<"Account Number :"<<accountNumber<<endl;

cout<<"Account Balance:"<<balance<<endl;
}
};
#endif

#include <cmath>
#include <iomanip>
#include <iostream>
#include "CheckingAccount.h"
#include "SavingsAccount.h"
#include "BankAccount.h"

using namespace std;
int main()

{
//Declaring local variables
double amount;
int choice;
//Displaying menu choices
do
{
cout<<"Create an Account"<<endl;
cout<<"1 Checking Account"<<endl;
cout<<"2 Saving Account"<<endl;
cout<<"3 Exit"<<endl;
//reading choice
cin>>choice;
//if checking account
if(choice==1)
{
cout<<"enter account number"<<endl;
int ano;

cin>>ano;
cout<<endl<<"enter opening balance"<<endl;
double obal;
cin>>obal;
double irate;
cout<<endl<<"enter interest rate";
cin>>irate;
CheckingAccount obj (ano,obal,irate);
int ch;

do
{
//ask choice of operations
cout<<"1 Deposit"<<endl<<"2 WithDraw"<<endl<<"3 Account Info"<<endl<<"4 Exit"<<endl;
cin>>ch;
//Perform selected operation
switch(ch)
{
case 1:
cout<<"Enter amount";
cin>>amount;
double damount;
damount=obj.depositAmount(amount);
cout<<"Available balance: "<<damount<<endl;
break;
case 2:
cout<<"Enter amount";
cin>>amount;
double wamount;
wamount=obj.withDrawAmount(amount);
cout<<"Available balance: "<<wamount<<endl;

break;

case 3:

obj.showAccountInfo();

break;
}//End of switch

}while(ch!=4);
}//end of if

//If choice is savings account
else if(choice==2)
{
//reading needed information
cout<<"enter account number"<<endl;
int ano;
cin>> ano;
cout<<endl<<"enter opening balance"<<endl;
double obal;
cin>> obal;
double irate;
cout<<endl<<"enter interest rate"<<endl;
cin>> irate;
//Creating object for savings account
SavingAccount sObj( ano, obal);
int ch;
do
{
cout<<"1 Deposit"<<endl<<"2 WithDraw"<<endl<<"3 Account Info"<<"4 Exit"<<endl;
cin>> ch;
switch( ch)
{
case 1:
cout<<"Enter amount";
cin>>amount;
double damount;
damount=sObj.depositAmount(amount);
cout<<"Available balance: "<< damount<<endl;
break;
case 2:
cout<<"Enter amount";
cin>>amount;
double wamount;
wamount=sObj.withDrawAmount(amount);
cout<<"Available balance: "<< wamount<<endl;
break;

case 3:
sObj.showAccountInfo();
break;
case 4:break;
default:cout<<"invalid choice";
break;
}//End of switch

}while( ch!=4);
}//End of else
}while(choice!=3);
}
as the title says im getting a weird number as the outputs.

ApplicationVerifier warning/error suppression

$
0
0

Background:
When using ApplicationVerifier&WinDBG with my C application, I keep getting a breakpoint due to APPLICATION_VERIFIER_IO_ASYNCIO_STACK_UNWIND (800).
This isn't relevant for my application, so I'd like to disable it.

Problem is -
I know I can disable it via ApplicationVerifier itself,
but is there any way to suppress this in my code?
I need this not to happen on other instances of ApplicationVerifier as well...

Thanks!

64 bit DLL shared between C# WEB app and C++ desktop app...?

$
0
0
Not sure if this is the right place to ask, but.. I'm writing a new desktop app and this time I want the core calculation stuff to be in a DLL which I can also call from a C# web based application.

Is this a sensible doable approach?

Any gotchas?

It'll be MFC based...

Currently all of my desktop apps have been statically linked MFC  Windows EXEs. Would I need to change for dynamically linked programs?

http://www.ransen.com Cad and Graphics software

Viewing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>