bieblsoft's Q&A profile
Visual C# How to Automatic Shutdown the PC?
Good day! Please help me or give some ideas on how to automatic shotdown the PC. The scenario is i have a shutdown button. if the users click that button it will automaticaly close your applications and shutdown you computer.. thanks. This MSDN page lists the shutdown functions. I couldn't find equivalent .Net framework functions so you have to use unmanaged calls to do what you want. Michael ...Show All
Visual C# adding a library in a aspx file
Hello, I know that you can add the reference to a library by right clicking on the project and choose add a reference. But I would like to know if it is possible to add a library to an aspx file that is not in a project. I tried the import namespace but it doesn't find the library (namespace could not be found, are you missing a reference error message). The dll file is on the same folder as the aspx file, and in a bin file of the root and I even add it in the globalcache. Can someone help me Thanks 1) Load the *.dlls into the GAC 2) Then add the libraries (*.dlls) to your project ...Show All
SQL Server Index not showing up on receiving database after DTS
We have a DTS package from an MS ACCESS database to a SQL Server 2000 database. One of the tables ENGR_ITEM had an index on it in ACCESS, but you can't see it in the object list in Enterprise Manager. The only way you know the index is there is if you try to create a primary key on the table and then save it. It won't let you save it because it says it already has a primary key from the index. You would think you would be able to see it if it existed. Does anybody find that weird Thank you for your information on how to find the indexs/constraints on tables. Very help ...Show All
Visual C++ Correct way to reference managed code
Hi, I am trying to call a form object using _beginthread(), if: Form ^ myForm = gcnew Form(); and void myThread(void * theForm) {...} and _beginthread(myThread,0,myForm); How do I use myForm within the thread function Thanks in advance! Ljubica if you are developing against .NET 2.0 you can also use the BackgroundWorker class, which implements common thread operations. The UI restriction that Alex talks about still applies. Brian ...Show All
.NET Development local host ambiguity and other issues
I am kind of in the beginning of what I see is a long path to conquer .NET concepts, so excuse my naivite on many issues. I am trying to develop a project that would listen to some active TCP/UDP ports in my Win2K or WinSer2003 OS and forward the stream of datagrams into SQL database tables. A number of parts of this project are already in place. Now I am working on a listening part. Here I used a Dns.GetHostName() to get the local host name. It gave me a canonical name DDMNVT61 which is my computer's name. The IP address for this name was 10.1.10.176 which is the IP address of my Comcast broadband modem/router (10.1.10.1). When I am checki ...Show All
Visual C++ Vc++ 2005 express, how do i compile
how do i compile a sample.cpp file located somewere on my computer like in mydocuements im a tottal noob can someone tell me how to compile the code i wrote or point me in the directions with some urls or somthing please lol You have two options. First off, you can start the IDE, create a new c++ project, click File->new->project...->Win32->console application (if you're doing standard c++, use clr if you're doing .Net)->enter a name -> click ok -> click next -> uncheck precompiled header and check empty project -> Finish -> Right click Source Files on left panel and click add -> existing item. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting up with directX SDK
helllo, i have a very frustrating question. i can not seem to get Visual C++ to work with the directX, i have installed directX 9 but when i open some of the sample programs i get a include error. "windows.h" i have been reading and that has something to do with the PSDK. but i have that installed and i belive i have it included right. if anyone has any ideas, or can offer some help that would be awesome thank you Take a look at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=269916&SiteID=1 Hope this helps! Thanks, Ayman Shoukry VC++ Team ...Show All
Visual C# Tips on posting
Here are some tips on posting, so that your questions could likely be answered quickly. 1. Make your Title as significant as possible . Compose it in a way that you would ask an expert. example - "How could I change a Buttons Background " instead of "button background problem" 2. Explain in detail the nature of your dillema . But please make it short, straight to the point but descriptive. 3. Provide steps on reproducing your problem . So that other posters could replicate this on their pc's and thus find a quick solution. 4. Also, provide a Code Snippet where you think is causing the problem . This is a common situation that ...Show All
Visual C++ '0' character oddity
I'm working on a Poker game for a class project and I've come across an unexpected behavior of the '0' character. One I know it might be better to use '1' but, I haven't, up to this point anyway. I'm just wonder if anyone could explain to me why this code is actually working. It confounds me. Is it a bug I'm trying to sort a hand of Card objects, implemented as such: struct Hand { const static int COUNT = 5; Cards cards[COUNT]; ... }; I know I need to overload the < operator. Here's class Cards: struct Cards { char suit, value; void setSuit(char suit) { this->suit = suit; } void setValue(char value) { this-> ...Show All
Windows Forms Cookies problem...
I need to download HTML pages from a website. These pages require username/password access which I DO have. The problem is, the website sets a persistent cookie in my Cookies folder and it's encrypted, so I can't read it's content. How can I automate the download of these pages but not through internet explorer In other words, how can I make WebClient ...Show All
Visual Studio Question: If the ? char is a specified char ?
Experts, I wrote a task and pass a parameter in. details as follows: MSBuild file ------------------------------------ <ItemGroup> <MyItems Include="c:\common3. \*.*"></ADDL_LIB> <MyItems Include="c:\nodes.600\*.*"></ADDL_LIB> </ItemGroup> <Target Name="MyTask1"> <CopyMyTask PARAMS=="@(MyItems)"/> </Target> In my task, I can get the PARAMS parameter. However, MSBuild only pass a member (c:\nodes.600\*.*) to task and the count of PARAMS' member is ...Show All
Visual Studio Express Editions displaying different Time besides local time
Hi I am a newbie to VB 2005 Express actually am a newbie period to vb . The problem that I am having is trying to display local time & another time ie: say london uk. on another clock side by side. On a form Any idea's on how to this is tnx Eze I 'm trying to put them on a form as individual clocks to display them like you sometimes see them on the back wall of a news program only these will be displayed on the desktop of a comp. PS tnax for the reply ...Show All
Visual Studio Tools for Office Outlook 2003 navigation bar
Hi, Ive got some questions regarding Outlook 2003 development. I am using VS 2005 Beta 2 and VSTO 2005. What Id like to know is what level of customization is possible in modifying Outlook. For example, can I create a new button and add it to the navigation bar If I then click on my button can I view a custom top level form similar to say the calendar or contact list Is this possible and if so which objects should I be looking at Thanks, Mike Hi, I didn't find how to add a Navigation Bar to Outlook. I read in another post that is not possible. 1 - Anybody have an example about how to add a new option ...Show All
Visual C++ VC8 requires STL list to define operator< ?
Hi, I have code that compiled with VC6 but doesn't on VC8. The problem seems to be that list::sort requires that an operator< be defined. None of my classes have the < operator defined. However, in VC6, the compiler would only complain if you actually used myList.sort(). VC8 seems to require that the class have the operator< even though I don't use the sort routine. Is there a compiler option to make VC8 not require that code exists if it's not required -- or something to that effect Thanks for any help. Dan. I ...Show All
Visual FoxPro VFPOLEDB and AddNew method
Hi! I cannot write into table created by ADOX. If I can add insert data with AddNew method of recordset object in MFC C++ error occurred 0x80040e46 with descrtiption A unknown error has occurred. Can you help me. Thank you for your help. ...Show All
