Tagged Questions
3
votes
4answers
38 views
Creating Shared-Memory for two different processes
So, I'm trying to create a shared-memory segment in a C program, so I can for example write a simple character in it, and read that character from another C program.
I've been trying to use calloc() ...
0
votes
1answer
60 views
using Strings in C/C++ — [ ] after LPCTSTR
came across this and was wondering what it does
LPCTSTR szmyLPCTSTR;
// doing _tcsncpy things with that string
//at the end then there is this line which i am not sure what it does
...
1
vote
0answers
39 views
output to command line from windows gui program
I have a win32 gui based exe which is GDI based -
The program accepts command line arguments when it starts, and
I need a way to print out a message if the command line is incorrect.
At the moment, ...
0
votes
0answers
21 views
_spawnve() is not disabling the ctrl-c signal even though we have set the console mode to keyboard input
I have a use case where i need to invoke a child perl process from my main program.
and i want that if ctrl-c is pressed at parent process child process should not get killed. basically i want to make ...
2
votes
4answers
87 views
How to decrease CPU Usage when it reaches to 100% when using while(1) loop
I am working on UDP Server/Multiple Client Application.
There are multiple threads handling multiple clients.
There is one single thread which keeps on sending KEEPALIVE Messages to each active ...
0
votes
0answers
24 views
Why does dllMain overrides the control-word of my FPU?
I've seen here and here that dllMain changes the control-word of my FPU, and I need to:
_control87(_CW_DEFAULT, _CW_DEFAULT);
so it will return to normal. But no one states why it is done.
Does ...
0
votes
1answer
35 views
how to get access after hide the drive with Diskpart Command-Line Utility
I want to hide the drive from user with Diskpart Command-Line Utility .
I use remove letter command and the drive becomes hidden .
But I want to use the data of that drive for example in my program ...
0
votes
0answers
12 views
WASAPI: Session not expiring
Ok so I've been trying to get some audio working, essentially I want to have multiple windows open under the same process playing audio and video (audio is muted on all but topmost). I am having a ...
-7
votes
0answers
87 views
C/C++ Compiler Driver doesn't work [closed]
Please don't mark this as duplicate.
I know that there's already a question about this here in Stack Overflow. So I try to use the Microsoft C/C++ Compiler Driver but it doesn't work. So, I followed ...
-1
votes
1answer
29 views
client for a multithread chatserver in c win [closed]
I want to write a client for a multithreaded server. The server sends every message to all clients which are connected. For this kind of server I can not use the normal client because if you write ...
4
votes
6answers
128 views
A funny thing with sprintf
I'm so confused with sprintf that a funny problem with different platfrom.
Code :
int main ()
{
char sql[1024];
uint32_t app_id = 32;
uint64_t task_id = 64;
sprintf(sql, "%u, %u", ...
0
votes
1answer
18 views
Error in assigning port number to socket using newSocket.sin_port = htons(portNumber);
I am trying to assign port number passed to it by a function. The port number received is displayed correctly when received but when I try to assign that port number to a new Socket, that port number ...
0
votes
1answer
28 views
Concept of non-blocking socket functions using WSAWaitforMultipleEvents()
I am using WSAWaitforMultipleEvents() fucntions and I think that made my sockets non-blocking i.e. recvfrom() is only called only when FD_READ Event is generated and data is available at socket to be ...
-1
votes
1answer
52 views
CPU Usage goes to 100% when running few threads
My code is a UDP single Server/multiple Client application using WSAWaitforMultipleEvents().
On the Server side, there are 3 ReceiveThreads and each Receive Thread has its own sendThread. There are ...
0
votes
0answers
13 views
purecoverage instrumentation error. “Unable to direct patch a reference” error
I am working on running PureCoverage on our executables.
I faced 2 problems initially but one was resolved after linking the object files with relocation information using the link.exe option ...