Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan8-Jan-23 1:37
mveRichard MacCutchan8-Jan-23 1:37 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco2438-Jan-23 1:58
coco2438-Jan-23 1:58 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan8-Jan-23 3:04
mveRichard MacCutchan8-Jan-23 3:04 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco2438-Jan-23 5:53
coco2438-Jan-23 5:53 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan8-Jan-23 22:28
mveRichard MacCutchan8-Jan-23 22:28 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco2439-Jan-23 10:21
coco2439-Jan-23 10:21 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan9-Jan-23 21:50
mveRichard MacCutchan9-Jan-23 21:50 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 4:10
coco24310-Jan-23 4:10 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan10-Jan-23 5:29
mveRichard MacCutchan10-Jan-23 5:29 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 6:03
coco24310-Jan-23 6:03 
GeneralRe: Where to find connect declaration of this mysql instace Pin
Richard MacCutchan10-Jan-23 6:42
mveRichard MacCutchan10-Jan-23 6:42 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 8:12
coco24310-Jan-23 8:12 
GeneralRe: Where to find connect declaration of this mysql instace Pin
markkuk10-Jan-23 2:27
markkuk10-Jan-23 2:27 
GeneralRe: Where to find connect declaration of this mysql instace Pin
coco24310-Jan-23 4:11
coco24310-Jan-23 4:11 
AnswerRe: Where to find connect declaration of this mysql instace Pin
RedDk8-Jan-23 9:12
RedDk8-Jan-23 9:12 
Questiondll access violation with Excel 32 / 64 bits Pin
Danilo Lemos 20216-Jan-23 1:30
Danilo Lemos 20216-Jan-23 1:30 
Hi,

I built a function library (dll) in MS-Visual Studio 2022 using C/C++, to be accessed directly from Excel cells via VBA code.

When I call the dll in the 32-bit version of Microsoft 365 Excel, no error occurs. But when I compile the dll for x64 and run it from the 64-bit version, an access violation occurs in the function arguments.

Summarizing the project in a single function:

---------------------------------------------------------------
.cpp file:

extern "C"
{
    __declspec(dllexport) double __stdcall fA(INT64&);
}

double __stdcall fA(double& a) // causes an exception in 64 bits mode
{
    return a;
}
-------------------------------------------------------------

VBA da planilha Excel:

Declare PtrSafe Function fA _
Lib "C:\dll64\dll64.dll" (ByRef a As Double) As Double


-------------------------------------------------------------
AnswerRe: dll access violation with Excel 32 / 64 bits Pin
Victor Nijegorodov6-Jan-23 5:49
Victor Nijegorodov6-Jan-23 5:49 
QuestionLinker error when adding Ole to my application, what am I missing? Pin
charlieg4-Jan-23 16:15
charlieg4-Jan-23 16:15 
AnswerRe: Linker error when adding Ole to my application, what am I missing? Pin
CPallini4-Jan-23 22:14
mveCPallini4-Jan-23 22:14 
GeneralRe: Linker error when adding Ole to my application, what am I missing? Pin
charlieg6-Jan-23 5:07
charlieg6-Jan-23 5:07 
QuestionRe: Linker error when adding Ole to my application, what am I missing? Pin
Randor 5-Jan-23 16:41
professional Randor 5-Jan-23 16:41 
AnswerRe: Linker error when adding Ole to my application, what am I missing? Pin
charlieg6-Jan-23 10:17
charlieg6-Jan-23 10:17 
GeneralRe: Linker error when adding Ole to my application, what am I missing? Pin
Randor 6-Jan-23 10:40
professional Randor 6-Jan-23 10:40 
Questionhow to interact with access control and open the door from My c++ desktop application Pin
Zouaoui Billel31-Dec-22 4:58
Zouaoui Billel31-Dec-22 4:58 
AnswerRe: how to interact with access control and open the door from My c++ desktop application Pin
Richard MacCutchan31-Dec-22 5:11
mveRichard MacCutchan31-Dec-22 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.