Click here to Skip to main content
15,500,869 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionmain.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
Nagavarapu Pavan4-Apr-22 21:23
MemberNagavarapu Pavan4-Apr-22 21:23 
AnswerRe: main.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
CPallini4-Apr-22 22:47
mveCPallini4-Apr-22 22:47 
GeneralRe: main.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
Nagavarapu Pavan4-Apr-22 22:56
MemberNagavarapu Pavan4-Apr-22 22:56 
GeneralRe: main.c:37:37: error: expected expression at end of input 37 | if (bind(server_fd, (struct sockaddr *)&address, | ^~~~~~~~ Pin
CPallini4-Apr-22 23:46
mveCPallini4-Apr-22 23:46 
QuestionCan not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar1-Apr-22 11:17
MemberAlex Banar1-Apr-22 11:17 
AnswerRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Victor Nijegorodov1-Apr-22 21:42
MemberVictor Nijegorodov1-Apr-22 21:42 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar2-Apr-22 3:01
MemberAlex Banar2-Apr-22 3:01 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Victor Nijegorodov2-Apr-22 3:55
MemberVictor Nijegorodov2-Apr-22 3:55 
.Net is for managed C++/CLI.
MFC does nt support "managed" code, only the native one. So you have to create a new C++/CLI project and try to work with this DirectorySearcher class in there.
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar2-Apr-22 11:08
MemberAlex Banar2-Apr-22 11:08 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard MacCutchan4-Apr-22 0:12
mveRichard MacCutchan4-Apr-22 0:12 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Richard Andrew x644-Apr-22 7:49
professionalRichard Andrew x644-Apr-22 7:49 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Dave Kreskowiak2-Apr-22 5:46
mveDave Kreskowiak2-Apr-22 5:46 
GeneralRe: Can not create object of DirectorySearcher class with Visual C++ with project reference of System.DirectoryServices.dll Pin
Alex Banar2-Apr-22 11:08
MemberAlex Banar2-Apr-22 11:08 
QuestionSwitching a toolbar from Docked to Floating without restarting app? Pin
kittmaster31-Mar-22 12:59
Memberkittmaster31-Mar-22 12:59 
AnswerRe: Switching a toolbar from Docked to Floating without restarting app? Pin
Randor 1-Apr-22 5:26
professional Randor 1-Apr-22 5:26 
GeneralRe: Switching a toolbar from Docked to Floating without restarting app? Pin
kittmaster1-Apr-22 7:06
Memberkittmaster1-Apr-22 7:06 
GeneralRe: Switching a toolbar from Docked to Floating without restarting app? Pin
Randor 1-Apr-22 7:32
professional Randor 1-Apr-22 7:32 
GeneralRe: Switching a toolbar from Docked to Floating without restarting app? Pin
kittmaster1-Apr-22 10:37
Memberkittmaster1-Apr-22 10:37 
GeneralRe: Switching a toolbar from Docked to Floating without restarting app? Pin
Randor 1-Apr-22 11:13
professional Randor 1-Apr-22 11:13 
GeneralRe: Switching a toolbar from Docked to Floating without restarting app? Pin
kittmaster1-Apr-22 13:34
Memberkittmaster1-Apr-22 13:34 
QuestionMfc Pin
D Sirisha29-Mar-22 7:52
MemberD Sirisha29-Mar-22 7:52 
GeneralRe: Mfc Pin
David Crow29-Mar-22 8:04
MemberDavid Crow29-Mar-22 8:04 
AnswerRe: Mfc Pin
CPallini29-Mar-22 21:30
mveCPallini29-Mar-22 21:30 
QuestionThere are NN people standing on a line, exactly one of them (we don’t know who) is infected with a virus. The virus spreads from one person to another if their distance is at most 2. If the infected person is chosen optimally, find the minimum (bes Pin
099_Rohan29-Mar-22 5:33
Member099_Rohan29-Mar-22 5:33 
AnswerRe: There are NN people standing on a line, exactly one of them (we don’t know who) is infected with a virus. The virus spreads from one person to another if their distance is at most 2. If the infected person is chosen optimally, find the minimum Pin
Victor Nijegorodov29-Mar-22 5:55
MemberVictor Nijegorodov29-Mar-22 5:55 

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.