|
|
There is a switch in VC that will output intel assmbly code. I have no Idea how this will help you with a UNIVAC which I know will not use Intel assembly but the switch is in the project settings. I would tell you the switch location but this depends on your version of VC.
John
|
|
|
|
|
I want it for educational purpose and to use it in my UNIVAC simulator. Sorry about the other message I accidently posted the other message, but I still want you to read it.
--------------------------
Eric
I still need to learn C++!
--------------------------
|
|
|
|
|
|
|
Hi All,
I have a serious issue here , one of my client has moved to server 2003 SP1 , that machine has dual processors. And my application is not working there , its giving excpetion . This is a socket bases multithreaded application .
Any sugesstions that what may be causing the problem ? security configuration or some dll thing ? or do I have to compile it on that machine ?
Regards,
ZINC
HELLO
|
|
|
|
|
I had a similar problem. I found I had to use the new "sockets" libs and API.(WINSOCK2)
|
|
|
|
|
Without any details on the exceptions can't say what the problem is. Most likely simply a timing bug which is better exposed on the system you are testing with than other systems (if it works on other systems).
8bc7c0ec02c0e404c0cc0680f7018827ebee
|
|
|
|
|
Hi,
I am trying to remotely debug a dll. I don't know how to set the project settings and how to set the debug combo box.
My executable on host machine is a exe file and the one on the target is a dll.
Please help to how to fix that.
Thanks in advance
|
|
|
|
|
Preeti9 wrote: My executable on host machine is a exe file and the one on the target is a dll.
Why is the executable on the target different than the source? To do remote debugging you usually map a network drive and load your project in vc on your development machine on the network drive and configure it to execute your program on the same network folder/drive letter on the remote machine.
John
|
|
|
|
|
Hi all,
Can a UDP Socket send/receive data from TCP Socket?
Actually I want to make an HTTP program that sends requests to the server, but my program design attracts me towrads UDP sockets, but HTTP is TCP based. Any solution?
Another Question:
If I create a TCP Socket, Can I use Raw sockets to hide my IP address, can I manage the TCP Data/header?
I want to send TCP data anonymously.
Any help is appreciated
Regards
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Hi.
For anyone that is fimilar with the GLUT library:
If I create a window using glutCreateWindow, and later close it (using the 'X' at the corner of the window), do I have to explicitly call glutDestroyWindow with the window's ID number (or is that function called automatically)?
Thank you.
|
|
|
|
|
I have just started to use named pipes for communication between programs and i was wondering if there is a method or tool available for viewing the data that is passing through them without having to actually create another program to connect between them? Something like an IP packet sniffer/capture program or a method to create one?
Thanks.
|
|
|
|
|
I'm changing the text in a control and I want to reposition the cursor at the end of the text after I display the text. What I'm doing doesn't work! The cursor is always set to the beginging of the text (due to the "SetFocus"). Any ideas?
NB: m_CheckNoCtrl is a control to the field!
m_CheckNoCtrl.SetWindowText(szTemp); // Paint new text in control
m_CheckNoCtrl.SetFocus(); // Set focus to control
int ndx = m_CheckNo.GetLength(); // Get the new length
SendMessage (EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
|
|
|
|
|
Hi,
for me it works
CString sJaya("HELLOPSODPO");
c_numedit.SetWindowText(sJaya); // Paint new text in control
c_numedit.SetFocus(); // Set focus to control
int ndx = sJaya.GetLength ();
c_numedit.SendMessage (EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
And i see that you are setting with one text and doing a getLength() on another wats that for .
Regards,
FarPointer
-- modified at 11:50 Wednesday 18th January, 2006
|
|
|
|
|
The GetLength()is on the variable I set up for the text.
However you solve my problem!
I changed the SendMessage (EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
To: m_CheckNoCtrl.SendMessage (EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
I overlooked specifing the control I was sending the message for!
It now works for me too.
Thanks!!!
|
|
|
|
|
This should be a no brainer. I am using Visual C++ 6.0. Because I want to use fseek() I declare a file of FILE* filename and then use filename = fopen(path, "r+"). I can read from the file but when I try to write (using fprintf() and fwrite()) to the file nothing changes in the file I am reading from and trying to write to. I have also tried "rt+". I receive no errors. Is there something basic I'm not aware of?
Buck
|
|
|
|
|
See if this helps!
When the "r+", "w+", or "a+" access type is specified, both reading and writing are allowed (the file is said to be open for “update”). However, when you switch between reading and writing, there must be an intervening fflush, fsetpos, fseek, or rewind operation. The current position can be specified for the fsetpos or fseek operation, if desired.
|
|
|
|
|
Hi,
According to the MSDN library at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_fopen.2c_._wfopen.asp
they say
"When the "r+", "w+", or "a+" access type is specified, both reading and writing are allowed (the file is said to be open for "update"). However, when you switch between reading and writing, there must be an intervening fflush, fsetpos, fseek, or rewind operation. The current position can be specified for the fsetpos or fseek operation, if desired."
So it looks like you will have to reset the open file pointer to the appropriate position before switching between reading and writing operations. If possible, it may be more convenient for you to read and write using separate sessions.
Hope this helps.
Paul
|
|
|
|
|
The executable has been developed in Borland C++ 6.0. I need to store the user login and password in windows registry, so that each time the user doesn't have to type in his username and password when he runs the exe.
Many Thanks,
Priya
|
|
|
|
|
See here.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
You better encrypt the password before storing it there.
Regards,
Nish
|
|
|
|
|
Or maybe use a one-way hash on it? Might be a little more secure...
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Priya..k wrote: need to store the user login and password in windows registry, so that each time the user doesn't have to type in his username and password when he runs the exe
Try CRegKey class.. and For Storing UserName and Password you can use widly available RC4 algorithm
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
How do I display text orientated 90 degrees, ie so that it reads up the screen and you turn you head 90 degrees to read it.
TIA
|
|
|
|