Software Development Network Logo
  • Visual J#
  • Visual Studio
  • Visual Basic
  • Windows Vista
  • Game Technologies
  • VS Team System
  • VS Express Editions
  • Visual C++
  • Windows Forms
  • Microsoft ISV
  • SQL Server
  • .NET Development
  • Windows Live
  • Visual FoxPro
  • Visual C#

Software Development Network >> Greggi's Q&A profile

Greggi

Member List

popsdawg
Puck
phlox
Jaseman
Angry SQL 2005 User
Coldfire23230
AllanP
jheske
Mindaugas Luko?ius
Roland Jochems
Ben Jensen
MING LV
JohnStallo
dougec
Harry James
Senthamarai A Kannan
Tedoniman2
inpacem
Group By Expressions
BennyAW
Only Title

Greggi's Q&A profile

  • Smart Device Development SerialPort locking up after device On/Off

    I have an issue similar to this to Re: PocketPC SerialPort and turning off/on the device I have a i-mate PDA2K talking via bluetooth to a Destron DTR1 Every thing works correctly until the PC-device is turned on/off (automatically or manually) When the device powers back on I get two PinChanged Events CtsChanged and DsrChanged as happens when the connection is first opened. But not reads come through. Opening the Bluetooth Manager now show no active connect, and the Bluetooth scanner indicates no connect. If I close the SerialPort via if (port != null && port.IsOpen) { port.Close(); } if (port != null) { port.Dis ...Show All

  • Smart Device Development Help! about the Menu!

    I noticed that in vs2005(smartphone 2003 SE app), MenuItem can only be added into right softkey popup-menu. But I want to get a popup-menu when I press the left softkey, how I can do Thank you T.T Sriram Krishnan MSFT wrote: That would be a violation of the logo guidelines. Dont do it! That is a lie. http://download.microsoft.com/download/5/6/8/568a922b-b62c-46d3-a745-0172c2638686/sp_handbook_may2004_final.pdf "Required: Menu on Right Soft Key If the application uses a menu, the menu must be located on the right soft key. The left soft key must be for quick (common) actions, such as ...Show All

  • .NET Development How to update/insert/delete from mulitple tables with SqlDataAdapter?

    My datatable is a composite of two tables so I have to write my own insert, update and delete SqlDataAdapter commands. Since the datatable is a composite I need to affect 2 tables when the adapter updates/inserts/deletes. How to write these commands to affect two tables   You can write two separate INSERT/DELETE/UPDATE SQL statements and separate them with semicolons, or use a stored procedure with both statemens inside. I prefer the first method because I can easily write code that works on almost any SQL database, but anyone on the "cult of the stored procedure" will send you the ot ...Show All

  • Visual C++ Weird registry behavior with Win64 (AMD64)

    I have a normal 32 bit application which does the following: HKEY hKey; int nCount = 0; DWORD dwLen; if (RegOpenKeyEx(HKEY_CLASSES_ROOT, "CLSID\\{<<UUID>>}", 0, KEY_ALL_ACCESS, &hKey) != ERROR_SUCCESS) { printf("problem\n"); return nCount ; } if (RegQueryValueEx(hKey, "u", NULL, NULL, (LPBYTE) &nCount , &dwLen) != ERROR_SUCCESS) { printf("problem2\n"); } return nCount ; I'm using Visual C++ 6.0 and compile it for normal 32 bit. When I run it on normal 32 bit Windows XP everything runs as it should. When I run it in debug mode under Windows XP x ...Show All

  • Visual Studio 2008 (Pre-release) obtain client address inside service

    Hi I wish to get hold of the clients IP address, mac address and computer name within a service that is exposed using a net.tcp binding. Is this possible and, if so, how can it be obtained Thanks in advance Ant Yes, it's pretty straightforward. You can create headers either by using a MessageContract. (See this link for further details) http://windowssdk.msdn.microsoft.com/library/default.asp url=/library/en-us/WCF_con/html/036fae20-7c55-4002-b71d-ac4466e167a3.asp or by getting the OperationContext and putting it in manually: Ie: ChannelFactory < IScott > CFScott = new ChannelFactory < IScott > ...Show All

  • Visual Studio Showing crystal viewer

    I created a simple windows application that shows data from a SQL database in a crystal report viewer. I have no problems on my machine but when I run the program on other computers (using a setup package) I get blank on the report viewer. Hello, Is it a completely blank report or is it a report with no data (do headers still show up) Which version of Crystal Reports are you using What development tool are you using, COM (RDC) or .NET Are there any error messages at all Are you doing database logon in code at runtime Does this client machine have access to the SQL Server Is there a SQL Server database clie ...Show All

  • Visual Basic Input mask for Email?

    Does anyone have a good "input mask" for masked text box to validate Email addresses Best Sorry about my ignorance but I set " ^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" as the mask on a MaskedTextBox but I couldn't get it to work. Could you please provide a simple example on how to use this mask to validate an email address Thanks, ST ...Show All

  • SQL Server Problem accessing my local A:\ verses the SQL servers A:\ drive

    I am having a problem accessing my local A:\ drive, using the bulk insert command. The actual sql server pc thinks I am accessing its sql server's A:\ and not my local a:\ drive. I am trying to read in a simple CSV delimited ascii file into a sql table. Wow what a nightmare just to read a simple ascii file into a table. Unfortunatley I am writing a program in VB.net for an operator to import ascii data from floppy diskettes. I am using this command below: The command works fine but I have to go to the actual server and put the floppy disk in over there. I want the operator to be able to use there own A:\ or any location drive for that mat ...Show All

  • Smart Device Development Can not Include <process.h> for VC++ 2005 smart device

    Hi, I tried to include the process.h file in the VC++ 2005 smart device project but I got the error when compling: fatal error C1083: Cannot open include file: 'process.h': No such file or directory After making the line #include "process.h" blank, I got the error although i have set /MT option error C3861: '_beginthreadex': identifier not found. So I think _beginthreadex is part of process.h. I searched for this process.h, it is in C:\Program Files\Microsoft Visual Studio 8\VC\include, and I added this into the inlcude directorty for C++ project in the Tool->Option but I then got many other error when compling ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Dramatic memory leak in DrawText

    I've been banging my head against the wall for the last few days trying to track down the source of a rather big memory leak in my Direct3D-application. Turns out the culprit seems to be the DrawText function. Let me explain exactly what happens: I'm using a variable width truetype font (Times New Roman) created through D3DXCreateFont. I'm using this in various parts of my application, but the part where the problems are easiest to notice is in my custom UI textboxes. I use a function called InsertText to add new characters to the printed string, and everything I initialize is cleaned up properly afterwards. The problems only truly beg ...Show All

  • Visual Studio PrinttoPrinter doesn't print subreport

    Hi! I have a crystal report (that contains a subreport on demand) on a VS2003 window project. I want the user to set the page before sending it to the printing so I've created a window where I get this options, such as paper orientation, paper size and margins. I disable the print button on my CRViewer, and create a new print button that calls the report PrintToPrinter metod. it works fine when printing the main report, but it doesn't work with the subreports. How can I make this button behave as the one on the CRViewer toolbar. I don't care if I cannot have the select printer dialog, but I would like to print only the "active tab& ...Show All

  • SQL Server usability issue - open .sql files via visual studio

    I'm on a dev team using Visual Studio 2005 and Visual SourceSafe 6. Our solution includes all of the SQL DDL scripts in a set of script files in a folder in one of the data tier projects. This effectively brings the Transact-SQL under source control and makes it easier for us to work with it in a shared environment. There are about 100 .sql files, each concentrating on a particular part of the database. I use the SQL Server Management Studio to edit these scripts, generally opening it by double-clicking on one of the files in Solution Explorer in Visual Studio. The issue I have is in regards to opening multiple files. Does anyone know of ...Show All

  • Smart Device Development UserControl in .Net Compact Framework v1.1

    All who can help, i'm making a small .net application for a windows Ce .NET device, but i was wondering, is there any change to make a custom control or use usercontrol and add them at design time to one of my forms   So 2 questions: 1. Usercontrols are not supported in v1.1, do they in v2.0 If not can i use something else The reason i ask is that, i wrote an multi-panel application (One form which is always updating his panels (with usercontrols), depending on what data was received). But if i can't use usercontrols i'm in big trouble... 2. I made a custom button which add's an image to it, but can i add this custom control to the to ...Show All

  • .NET Development Web Service Logging

    Hello!   I have an application that uses the web service interface that is automatically created by Visual Studio 2003. However, because of some network problems, I need to log the transaction to the server and back, to find out where the problems are resulting. I’ve tried working with the SoapExtension class, but I couldn’t find a way to implement it into the web service class. I currently have installed WSE 1.0, but don’t know if this is something that WSE 2.0 will fix for me.   Thanks for your help!   Jose WSE 2.0 does allow you to turn tracing on at both the client and serve ...Show All

  • Visual C++ unable to edit command line for a project

    Trying to compile and execute a C++ project in VS2005 I ran into a linker problem. After some investigation it turned out that the calling convention was not what it was supposed to be for the functions used in the program. I changed the option for the calling convention from /Gd to /Gz. I needed __stdcall to be made. After that I got this error message: Error 1 Command line error D8016 : '/clr:pure' and '/Gz' command-line options are incompatible The command line now looks like this: /Od /I "C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\include" /D "WIN32" /D "_DEBUG" /D "_MBCS" /FD /EHa /MDd /Yu"stdafx.h" /Fp"Debug\Sock ...Show All

©2008 Software Development Network