|
You right-click the Project in Solution Explorer and click "Unload Project". That will allow you to open the .proj file in Visual Studio and take a look inside.
Funny how I don't have a problem with "wrestling with Visual Studio" when I write code. To each their own I guess.
modified 11-Dec-22 14:03pm.
|
|
|
|
|
truly said. Got it. Thanx
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
You mean the vxc.proj file? VS has too many working file types. there is
vxc.proj
.vcproj.user
.ncb
.snl
why not just program_name.main
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
jmaida wrote: why not just Because all these files have specific roles to play, and rather than one enormous text file which would be a nightmare to mange, each one can be individually managed easily. And yes, I agree it is difficult to understand when you first start, but like all things in life, you need to learn and practice. If you have a system that you prefer to work with that is fine, we all have our own favourites.
|
|
|
|
|
Hi,
I want to point the double-click handler for .dll files to my program instead of the default handler. There arise some questions:
1. can it do any harm? dll’s being system files.
2. How do I keep the option of calling the default handler from my program?
3. I tried the Microsoft docs but the documentation is very long and confused. I’ll be grateful for a pointer to a concise documentation of registry file associations, maybe some examples.
Many thanks.
alex
'Architecture is music frozen in space.'
|
|
|
|
|
I have Visual Studio on two computers. One is at work, so my Microsoft account there is different from my Microsoft account on my computer at home.
So far, I take my code back and forth by copying the folder for the solution I'm working on to a thumb drive and taking it with me. That's basically SneakerNet. I figured, with "the cloud" everywhere, there's some way I can set things up so both computers see the same code.
I tried with GitHub, but I don't want to get into forks and pulls and what not. I'm not two different people with one suggesting changes to the other and the other approving the changes or not. I just want to access the same code from two different Visual Studio installations with a minimum of fuss. Any ideas? Thanks!
|
|
|
|
|
I would think OneDrive or DropBox, etc. with an "shared" folder is minimal. You still need to upload / download (the project) though.
To me eliminating the thumb drive step is the main point.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Well, I guess up/downloading the project isn't a deal-breaker. Much better than carrying the USB around. Thanks!
|
|
|
|
|
You also have the issue of taking the code home with you. The code you write at work is the property of the place you work at. The real questions are "is your employer OK with you taking the code home?" and "are there legal issues you need to deal with by exposing the code outside of the work environment?"
|
|
|
|
|
Thanks! I understand those concerns and, fortunately, it's nothing like that. I've always coded as a hobby and to make shorter work of my work at work. After many years in IT user support, I aged out and am now a legal secretary at a small law firm. The pay's just as good and I'm never on call!
I'm working on a document generation system based on Word template files. It would have no commercial value because case management software these days comes with that feature. It's just that our firm is too small for a full-blown case management system. It's like writing a basic word processor for your uncle who runs a business but can't afford MS Office.
|
|
|
|
|
Then keep the code at work; you can Remote Desktop to your dev PC if you want to work on it from home.
Anything you write during work hours is owned by the company.
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
For (small, or any) business document management, I would recommend SharePoint Online. It's like $5.00 per month per user; quit any time. You'll never match what it provides out of the box.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
So, nearly posted a bug; but I understand I upvoted you already and can't do that twice!
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Listen to Dave - it is important.
If you can set up a shared drive between work and home (google, one drive, dropbox etc) then you can set the project folder to that drive within VS.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Yeah, I guess that's the way to go. I'll look into it.
|
|
|
|
|
Hello folks!
In several Winsock programs, I see that a loop with
n = select(max_sock, &read_fd, &write_fd, &except_fd, &timeval);
operation on a non-blocking socket takes approx. 2 seconds to determine there is no
listener for that socket. Even for a localhost:55117 operation.
I have no listening program on port 55117. And I'd expect this to be faster.
Even with curl that's bundled with Windows, I see this:
c:\> curl -4 localhost:55117
curl: (7) Failed to connect to localhost port 55117 after 2055 ms: Connection refused
What / where is this 2 sec. set?
-- Gisle V.
|
|
|
|
|
What do you have set for your timeval?
|
|
|
|
|
|
|
Well, I do not care if select() takes 1 milli-sec to complete.
What I'm asking is why it in total takes 2 seconds (2000 select-loops) to conclude the port is closed (no listener).
-- Gisle V.
|
|
|
|
|
Because there is no way to determine there is no listener unless you wait an appropriate amount of time for the server you tried to connect to to respond. If you waited one millisecond and the server you're connecting to doesn't respond to the connection request for 500 milliseconds, your code just assumed there was no response, and therefore no listener on the other end. In reality, your code was impatient and didn't wait long enough for the response to the connection request.
|
|
|
|
|
That make sense. But where is that time-limit determined?
-- Gisle V.
|
|
|
|
|
It's part of the Connection to the socket. The timeout you're specifying is for data transfer and query once the connection is setup. It has nothing to do with the time it takes to setup the connection itself.
|
|
|
|
|
TIMEVAL is combination of seconds and microseconds; there is no explicit millisecond setting for TIMEVAL.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
No? tv.tv_usec = 1000; is 1 milli-seconds according to what I learned in 2nd grade.
-- Gisle V.
|
|
|
|