I'm trying connect sql server 2000 in windows service with other system on same network.
there are 4 system connected without any problem. But on other 4 system, it is giving error
on connection open while starting windows service. The error is: "the service on local computer started and then stopped some services stop automatically" etc. Same Connection string working in web service
without any error. But giving problem in Window Service. Is there any Configuration setting of that server or sql server 2000. Any help will be highly appreciated.........
..and no, no pirate would go through the trouble of copying an existing Windows-system. A pirate would simply download an existing copy that does not have the key-protection (ideal for larger companies, bulkinstall)
From what I understood, W8 would even stop my scripts if not signed. I haven't touched it yet, so I can't say much about the (security) features. FWIW, you can still verify your system files with the System File Checker[^]
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
I can assure you it did, we had a very enjoyable game of cat and mouse with them at our last release, a AAA game title, watching torrents of still-protected versions clogging the internet. The question is more why have Microsoft STOPPED signing their DLLs, particularly after they have gone to such great lengths historically to get developers to sign theirs? Is there a replacement security mechanism I should have been made aware of?
I think your answers are a little too high level: I suspect digital signing is the means by which WRP was achieved. WRP has been around since Vista, but it's not the means we adopt to achieve our goals.
The endeavour was quite fruitful in that it delayed the cracking of the game. That's worth sales, believe it or not!
I suspect digital signing is the means by which WRP was achieved
Correct. Read the link I posted. Would also explain why there's no "need" for it anymore.
Guy Davidson wrote:
That's worth sales, believe it or not!
It is costing you sales. The reason you are working on Windows and not Macintosh or under AmigaDOS is the fact that it spread and got the most market-share. The people who wouldn't buy it still haven't bought it - (which does not equal a missed sale, that's a jump from a wordsmith) - but within no-time, everyone new the name, everyone complained about MS, and presto - they were the standard. Same story for MS Office and their competition WP, Lotus and DBase. They actively used the strategy to push the Express versions and bumped Borland out of the market.
The notion that a gamer would "buy" your game if he can't find a cracked version is plain wrong. We simply played another game, knowing that the other game would be available within a week. The reason that there are few cracked (modern) versions of Delphi available, is because we have a free alternative. It might not be as loaded as the "pro" version, but it's enough for the casual user.
I am sorry, but I cannot help here - as you can see, I'm coming from a very different perspective.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
Being a newbie in multithreading concept, I'd like to better understand why multithreading and/or multi-cores CPU could be problematic while determining timing in a program. Suppose, for example, that I want to know the elapsed time since a user has clicked with a mouse on the PC screen. I understand that there should be an event handler, but I read on some websites that computing such a deltatime could be very tricky, especially for multithreading and/or multi-cores PC.
On the other hand, some people warns about using GetPerformanceCounter because of the multithreading and/or multi-cores...
I would like to understand why and the concepts behind ?
The first problem is that your thread might be executed by different cores, the OS might switch your thread from one core to another. There are several problems with this: the switch takes time, it might screw up per-core cache efficiency and another problem is that GetPerformanceCounter() uses the tick count of the processor that said to be problematic on some systems if your thread is jumping from one core to another. To force the execution of your thread to a specific core use SetThreadAffinityMask()[^]. With this you might want to force every thread in your program to a specific core to avoid the problems I described above.
We have been using SHBrowseForFolder which returns a LPITEMIDLIST. That return value is then passed to SHGetPathFromIDList to get the actual path. All good until now.
Until recently, we used mapped drives. Now our IT team have replaced those with Shell Objects (using ShellObjectEditor.exe). Now the value in the returned LPITEMIDLIST no longer represents a file systems object and the call to SHGetPathFromIDList either returns something with GUIDs (for the sehell object itself) or nothing (for any subdirectory within the shell object).
Any idea how to get the path for a shell object (or its subdirectory) after a call to SHBrowseForFolder?
Or, alternatively, is there a replacement for SHBrowseForFolder that supports retrieving the path of shell objects?
Sure. You got to the manual here[^], and then you can read which exceptions the Start method might throw, and why.
..and if you click on the Exception and read it, you'll find a nice exception-handler that gives some more detail;
System.Diagnostics.Process myProc = new System.Diagnostics.Process();
myProc.StartInfo.FileName = "c:\nonexist.exe"; //Attempting to start a non-existing executable
myProc.Start(); //Start the application and assign it to the process component.
In this particular case, I'd guess that Windows can't find the file - probably because it's not in the local path.
With what? You still have not answered any of the questions asked of you, nor have you given a clear explanation of what your problem is. If a specific API call is not available in Windows Mobile, then that is probably because it would serve no purpose.
my problem is kill a process in windows mobile.i have method that kill process but sometime occurd win32Exception,i have method for get processes and processID and start process but when i kill process it say win32Exception.do u want that send my sourcecode for u?
And once again I have to ask: "what is the exception detail"? You seem to think that people can guess what is happening on your system without any information, but I'm afraid they cannot. Unless you provide full information about what you are trying to do and the full details of what happens, then it's unlikely that anyone will be able to offer a suggestion.
System.ComponentModel.Win32Exception at System.Diagnotics.Process.Kill() at Process.frmMain.EndProject() at Process.frmMain.tmrstartstop_Tick(Object Sender,EvenArgs e) at System.Windows.FormsTimer._WnProc(WM wm,Int32wParam,Int32 lParam) at System.Windows.Forms.ApplicationThreadContextMessage(WM wm,Int32 wParam,Int32 lparam)
Try the manual, as I suggested. There's a reason why it's passing a NativeErrorCode. As stated;
"Win32 error codes are translated from their numeric representations into a system message when they are displayed. Use NativeErrorCode to access the numeric representation of the error code associated with this exception. For more information about the error codes, see "Win32 Error Codes" in the Platform SDK documentation"
Go to this[^] page. That's the manual. Next, find the link that says "Win32Exception". You can find it on that page, without scrolling. Click on that link, and you'll get a page that explains the exception, and what might cause it.
It's a generic exception, and if the message doesn't tell you what went wrong, then you'd need to fetch the NativeErrorCode[^] to see what caused the exception.
Hello! I'm programming a database application in VC++ 2010 purely on Win32 API and DB classes. I started using ListView common control for showing tables data. I plan also support for any SELECT queries, and also - support for editing data right in the grid. But... ListView is messed around items, but not subitems. I can't select subitemes. Nor I can edit their values right in the grid. Is there a way to avoid this bottleneck? Maybe subclassing a window will be a hit? If someone will give some hints, maybe post links to some useful resources, I will appreciate this!
NB! Don't wanna move to .NET or С++ Builder, as one of my goals when I started this project was to maintaim my WinAPI skills!
Unfortunately the ListView does not offer this functionality so you would need to use subclassing to add it yourself. Alternatively you could try a Google search to see if anyone has implemented a GridView in pure Win32. Our Great Leader[^] has done one in MFC[^] so you could take a look at that and see if it can be adapted to your needs.
Programming is work, it isn't finger painting.Luc Pattyn