Using ifstream, string stream, and extraction operator >>
Let's say I have a file that is entirely strings but it's binary due to some nulls ('\0') in between the strings. So technically, it's not an ascii file (32 - 128), it's got some 0's in it. So using,...
View ArticleData Received From Serial Port not
hi all i am received following string from Device and store in database N1Z1802200000000000001000000S009000570101640048500851202880033800265003140015000536000280001400048004420013100098002530 Problem...
View Articlemicrosoft spy does not detect any message with an application
-hi, i have an application and if I use microsoft spy to see the messages to the window of an application, it doesn't detect anything. I'm asking, how is it possible?neither the mouse or...
View ArticleC++ program.
I want to realize program in c ++ in order to choose the best point by using several caracteristics. Each point vas its own caracteristics. Need help
View ArticleClose [X] aplication issue
Hi!! I have a MDI aplication that has MDI windows and top windows and unfortunately the document interface is not implemented. When I press the X button on the aplication (not on the child frame) I...
View ArticleUsing PsSetCreateProcessNotifyRoutineEx
I am trying to see when a new process is loaded into memory, and, for that I am intend to use PsSetCreateProcessNotifyRoutineEx method. In MSDN documentation say that this method has need Code:...
View Articleriched20 in 64 bit app
I.m using a control CRichText in a dialog. My App was in 32 bit platform and i use riched20.dll for this. When i upgrade the App from Visual Studio 2008 to Visual Studio 2017 and compile for a 64 bit...
View ArticleHow to create a AutoHotkey like hotstring using C++?
I have figured out an effective way to create a hotkey using C++. AutoHotkey example Alt+A to run a file. Alt & a:: Run, C:\blah\blah\blah\abc.png Return C++ example Alt+A to run a file. Code:...
View ArticleCView to PDF
I have an MDI app, with view derived from CScrollView, where I draw text, lines, and images. Is there any chance to export this CMyView to PDF, without any virtual printer or some third part library ?...
View ArticleMatlab
I have a Gui with a table in it. When a press a button it should fill the able with the results from an array in the workspace! BatteryDischargeCalc = assign(handles.uitable5,'data') %...
View Article[RESOLVED] Matlab
Attachment 35183 (http://forums.codeguru.com/attachment.php?attachmentid=35183) I have a Gui with a table in it. When a press a button it should fill the able with the results from an array in the...
View Article[RESOLVED] Fail to inject image of dll file in remote process
I want inject and execute the image of a x32 dll file in a remote x32 process (manual map injection) and to make this i found this following code, but he have a error in a line present in...
View ArticleCreate file, then increment by 1
Hey Guys, I'm looking for some code that works as follows:- I have a click box, whenever I press the button it creates a file in c:/results called results1.txt. the second time I press the button, if...
View ArticleI am trying to Copy/paste one workspace variable from one to another in matlab
I have the Workspace variable BatteryDischargeCalc and I am trying to copy it into T. This was my attempt. T=BatteryDischargeCalc; It works in the command but not in the editor. Does anyone have a...
View Articleon events
what is the difference between (i) and (ii): (i) void DoEvents() { MSG msg; while(::PeekMessage(&msg, NULL, NULL, NULL, PM_NOREMOVE)) { if (!AfxGetApp()->PumpMessage()) return; } } (ii) void...
View ArticleFilling an array with random lines from a file
Hi I currently have a program that reads the first 10 lines from a text file and adds them to a vector array, however how would you instead choose lets say 100 random lines from the text file and place...
View ArticleAn error in my code - binary digit matrix implementation by using 2D vector
Hello I'm doing a code in C++ which must execute a matrix in output contain binary digits, vertically. the programming environment is visual studio and when I use void in front of my 2D vector, I have...
View Article[RESOLVED] An error in my code - binary digit matrix implementation by using...
Hello I'm doing a code in C++ which must execute a matrix in output contain binary digits, vertically. the programming environment is visual studio and when I use void in front of my 2D vector, I have...
View ArticleRandom number generator with one for-loop
According to the following code which can generate random binary numbers, how I can decrease these two for-loops to one for-loop? Code: #include <iostream> #include <string> #include...
View ArticleError while statically linking Libsodium
It appears that I'm linking libsodium correctly, but I'm getting linker errors for _sodium_init, I'm using Visual Studio 2015, and the libsodium.lib (prebuilt) for msvc 140 (for vs2015). The project is...
View Article