Click here to Skip to main content
Page 1 of 3
Page Size: 10 · 25 · 50


Author filtered by: du[DE] [x]
Answer 8 May 2013   license: CPOL
Although this has nothing to do with programming, I think you can simple add the path of your console application to the PATH system variable: Windows 7 Select Computer from the Start menu Choose System Properties from the context menu Click Advanced system settings >...
Answer 6 May 2013   license: CPOL
When using a MultiLine TextBox (which generates a TextArea) setting the MaxLength property has no effect.There are some workaround, take a look: http://stackoverflow.com/questions/9797726/how-to-set-maxlength-for-multiline-textbox[^]
Answer 6 May 2013   license: CPOL
This code works without errors and creates 3 worker threads, keep in mind that you need a return value as int and int max_number = 3 and function[i]:DWORD WINAPI ThreadProc0(LPVOID param){ return 0; }DWORD WINAPI ThreadProc1(LPVOID param){ return 0;}DWORD...
Answer 6 May 2013   license: CPOL
In case you want to write a windows' driver, you can start here: Driver Development Part 1: Introduction to Drivers[^]
C++
Answer 30 Apr 2013   license: CPOL
1. Trim is a method: use rather txt_Studid.Text.Trim() as txt_Studid.Text.Trim2. Trim's return value is rather string as int: use string str = txt_Studid.Text.Trim();3. To convert string to integer use:int a = Convert.ToInt32(str);Good luck, dude!
C#
Answer 30 Apr 2013   license: CPOL
Take a look: VC++ MFC Tutorial: CListCtrl, InsertItem, Using List Control, SetImageList, Article with source code[^]>can we have any other option to increase or decrease the column width of virtual list control.Yes, we can:// The pointer to my list view control.extern CListCtrl*...
Answer 30 Apr 2013   license: CPOL
Take a look: Simple .NET PDF Merger[^]There are a couple of PDF mergers available on the Internet. But, either they are commercial products or don't support printing of the header and/or footer text, which is particularly interesting, e.g., to print the page number.The presented PDF...
Answer 29 Apr 2013   license: CPOL
I think the problem is the acces of GUI from the worker thread. Take a look at this article to see how to do right way: Using Worker Threads[^]Worker threads and the GUI II: Don't touch the GUIThat's right. A worker thread must not touch a GUI object. This means that you should not query...
Answer 29 Apr 2013   license: CPOL
Probably you have to have a declaration in your executable which uses DLL, like this:declspec( __dllimport ) extern int MyClass:: num;If it does not help, then add a static helper function for accessing that variable, for example:AFX_EXT_CLASS class CTest1{ static int...
Answer 24 Apr 2013   license: CPOL
Try this and say please whether it helps:#include #include int main() { std::wstring name; std::wcout > name; std::wcout
C++
Answer 24 Apr 2013   license: CPOL
STL is very slow while debugging in Visual Studio due to the iterator debugging support. You can speed this up dramatically by setting #define _HAS_ITERATOR_DEBUGGING 0Quelle: http://msdn.microsoft.com/en-us/library/aa985939(v=vs.80).aspx[^]
Answer 23 Apr 2013   license: CPOL
You could use the "System Up Time" performance counter to get the start time of the system PerformanceCounter-Klasse[^] PerformanceCounter systemUpTime = new PerformanceCounter("System", "System Up Time"); systemUpTime.NextValue(); TimeSpan upTimeSpan =...
Answer 23 Apr 2013   license: CPOL
On the first glance I think you have forgot to open/close the connection, try this:protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e){ if (e.CommandName.Equals("Delete")) { int index = Convert.ToInt32(e.CommandArgument); var id =...
Answer 22 Apr 2013   license: CPOL
Please take a look at this answer on StackOverflow: Deploy Visual Studio 2010 Database Project[^]Yes, you can deploy from Visual Studio to different machines. You can also do it from the command line, using VSDBCMD. And you can create a WIX project to give a wizard for others to install it...
C#
Answer 22 Apr 2013   license: CPOL
As TheFantomUpvoter already said, no need to worry about that. Take a look: Memory Management in .NET[^]The point is, there is a garbage collector that take care about the memory management of .NET application:De - allocation of memory is also different from normal Win32...
Answer 19 Apr 2013   license: CPOL
I think you can easy check whether an URL is valid like this:WebClient webClient = new WebClient();try { Stream strm = webClient.OpenRead(URL); // No exception, so the URL is valid! }catch (WebException we) { // houston...
C#
Answer 19 Apr 2013   license: CPOL
>Can you provide the code..I want to access network folder and upload to it..You can use the OpenFileDialog like this:string Pfad = string.Empty;OpenFileDialog openFileDialog1 = new OpenFileDialog();openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files...
C#
Answer 19 Apr 2013   license: CPOL
Take a look: Potential causes of the "SQL Server does not exist or access denied" error message[^]"SQL Server does not exist or access denied" is a generic Microsoft Data Access Components (MDAC) message that indicates that the computer that is running Microsoft SQL Server cannot be...
Answer 18 Apr 2013   license: CPOL
Take a look: Simplest ThreadPool example Using C++[^]What is ThreadPool?Thread Pool is collection of Live, Reusable threads. Why ThreadPool?There are many situation where we can use ThreadPool. Consider a Client-Server application in which server has to respond to multiple client at...
Answer 15 Apr 2013   license: CPOL
You need to install this package: http://go.microsoft.com/fwlink/?LinkID=188039[^]After successfully installing it, the issue should be gone. Good luck!
Answer 13 Apr 2013   license: CPOL
Try this:/* * Tested long integer square root function. */#include #include #define true 1#define false 0#if DEBUG/* * Return true if x is the truncated integer square root of y. */intverify_lsqrt(long y, long x){ if ((long long) x * x >...
C++
Answer 13 Apr 2013   license: CPOL
Take a look at this step-by-step explanation: http://www.functionx.com/visualc/howto/contextmenu.htm[^]Sometimes you may want to display a context menu. That is, if the user right-clicks, instead of a (left) click, you may want to display a particular menu. Many MFC controls don't provide...
MFC
Answer 12 Apr 2013   license: CPOL
Take a look at this site: http://forums.codeguru.com/showthread.php?460259-pollfd-in-windows[^]Q: poll.h does not exist in windows so poll() for sockets does not compile. Is there a way to make it work, or an alternative method?A: It's my understanding that poll() performs the same...
C
Answer 12 Apr 2013   license: CPOL
I've got an idea ;)Try this:VARIANT vFontSize;VariantInit (&vFontSize);V_VT(&vFontSize) = VT_I4;V_I4(&vFontSize) = 4; //arbitrary picked zoom value out of a possible range from 0 to 4//m_pBrowser->ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, &vFontSize,...
Answer 12 Apr 2013   license: CPOL
Try this:http://www.codeproject.com/script/membership/modify.aspx[^]
Answer 12 Apr 2013   license: CPOL
XLS is already XML, take a look: Microsoft Office XML formats[^]The Microsoft Office XML formats are XML-based document formats (or XML schemas) introduced in versions of Microsoft Office prior to Office 2007. Microsoft Office XP introduced a new XML format for storing Excel spreadsheets and...
Answer 11 Apr 2013   license: CPOL
Yes sure, but what if you want to change the values of more then one variable?Your function can return only ONE value so you need to find the way, how you can change the input parameter of the function - and this way is using of pointers (or in C++ of references).A good example: you want...
C
Answer 11 Apr 2013   license: CPOL
I think, you need to include winsock2.h
Answer 10 Apr 2013   license: CPOL
As I already wrote here [Strange link error while rebuilding in visual Studio 2012], Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not.Build is the...
Answer 10 Apr 2013   license: CPOL
Try this:select * from userInterestwhere (userInterest.interest LIKE '%abc%' OR userInterest.interest LIKE '%def%')
Answer 10 Apr 2013   license: CPOL
"unable to resolve identifier" means, your class Person is unknown here, you need to include the header of the class "Person" as well!Something like:#include #include "Person.h"
Answer 10 Apr 2013   license: CPOL
Try this://if((bytes_read=fread(file_buffer, file_size, 1, fpSend))
Answer 9 Apr 2013   license: CPOL
I would say, this two methods have not much in common. public static DateTime Parse( string s)Converts the string representation of a date and time to its DateTime equivalent.Return ValueType: System.DateTimeAn object that is equivalent to the date and time contained in...
Answer 9 Apr 2013   license: CPOL
Yepp, it is possible by using so called low-level keyboard hook.The hook must be implemented as a DLL, and it will watch for any of the common key sequences used to switch tasks. Whenever it detects one of those sequences, it will ignore the input by not passing it down the hook chain. Paul...
C#
Answer 5 Apr 2013   license: CPOL
Good question, Ron! Try to do something like this:STARTUPINFO info={sizeof(info)};PROCESS_INFORMATION processInfo;if (CreateProcess(path, cmd, NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo)){ ::WaitForSingleObject(processInfo.hProcess, INFINITE); ...
My vote of 5 by du[DE]
Forum Message 5 Apr 2013  
Good job!
Answer 5 Apr 2013   license: CPOL
Take a look at this article, HTH: http://channel9.msdn.com/coding4fun/articles/Managed-Library-for-Nintendos-Wiimote[^]In this article, Brian Peek demonstrates how to connect to and use the Nintendo Wiimote from C# and VB.NET. The final output is an easy-to-use managed API for the Wiimote...
Answer 4 Apr 2013   license: CPOL
No, that is not possible since there is no difference between a program and process apart from the fact that the first is static and the second running.I mean, the process is the running program. One process can however have several threads ...Take a look at (possibly) better...
C++
Answer 2 Apr 2013   license: CPOL
I think you need to set the ListView.Sorting Property to SortOrder.Ascending http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.sorting.aspx[^]// Sort the items in the list in ascending order.listView1.Sorting = SortOrder.Ascending;
C#
Answer 31 Mar 2013   license: CPOL
Try this (found at forums.codeguru.com/showthread.php?246724.html):[StructLayout(LayoutKind.Sequential)]public struct SYSTEMTIME{ public short wYear; public short wMonth; public short wDayOfWeek; public short wDay; public short wHour; public short wMinute; public short...
C#
Forum Message 29 Mar 2013  
Happy Easter in many languages[^]
Answer 28 Mar 2013   license: CPOL
As Jo wrote ([^]):... Start doing it in the one single "main" thread. If you notice that the server can't keep up, then split into two threads, one doing the communication and one doing the work. If it still doesn't work good enough, then two threads, each handling half of the clients. And...
Answer 27 Mar 2013   license: CPOL
Try this:Erase arr
Answer 27 Mar 2013   license: CPOL
HTML5 can be used as an alternative to Adobe Flash. Both include features for playing audio and video within web pages, and integrated vector graphics are possible with both.In other words, there is no need to include it! Take a look: Comparison of HTML5 and Flash[^]
My vote of 5 by du[DE]
Forum Message 26 Mar 2013  
Very good and understandable explain, great job!
Answer 26 Mar 2013   license: CPOL
>I am using thread to draw the form (1024x1024) continuously. >At the time i am scrolling to view the hidden part of the display, some flicker is happen.I would not draw the form during scrolling. You can use SetRedraw(FALSE) on the begin and SetRedraw(TRUE) on the end of scrolling. Take...
Answer 26 Mar 2013   license: CPOL
An example from MSDN http://msdn.microsoft.com/library/vstudio/8bh11f1k.aspx[^]:These examples show various ways to write text to a file. The first two examples use static methods on the System.IO.File class to write either a complete array of strings or a complete string to a text file....
Answer 25 Mar 2013   license: CPOL
Try this (just an idea, not tested!): Dim project As Project = CType(CType(DTE.ActiveSolutionProjects, Object())(0), Project) project.ConfigurationManager.ActiveConfiguration.Properties.Item("PlatformTarget").Value = "Any"
Answer 25 Mar 2013   license: CPOL
The concept of an iterator is fundamental to understanding the C++ Standard Template Library (STL) because iterators provide a means for accessing data stored in container classes such a vector, map, list, etc.You can think of an iterator as pointing to an item that is part of a larger...
C++
Answer 25 Mar 2013   license: CPOL
Take a look: http://www.mydigitallife.info/how-to-create-barcode-for-free-in-windows/[^]

Page 1 of 3
1 2 3


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid