Software Development Network Logo
  • Microsoft ISV
  • Visual FoxPro
  • SQL Server
  • Smart Devicet
  • VS Team System
  • Visual Studio
  • Visual C#
  • IE Development
  • Audio and Video
  • Visual Basic
  • Windows Forms
  • Windows Vista
  • SharePoint Products
  • Game Technologies
  • Visual C++

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

gafferuk

Member List

Setse
Andy Brooker
Pedro Felix
Flatulanta
NBtech
SillyMS
JohnBurns007
hte
brian_tsim
rahulsk1947
Konstantin Gonikman
reedcbr
soulmate75
flash.tato
humble.apprentice
MS_ISV
Maximus123
kedar_vj
12345_12345
Dan Rooney
Only Title

gafferuk's Q&A profile

  • Smart Device Development CAsyncSocket calls OnConnet(0) when the connection fails

    I am porting an MFC application to PocketPC that uses the CAsyncSocket class. I was able to make it connect successfully to the server. However I have the following problem: If the server is not reachable or the server is not started, the OnConnect(int nErrorCode) is called with nErrorCode==0 (like on a successful connection). This is a problem because my internal state thinks it's connected, but obviously it isn't. Has anyone experienced similar problems with the CAsyncSocket Is there some sample code available for a client CAsyncSocket application on the PocketPC That would help me to find the problem. The code works fine on the desktop version. Here are some more details and some code snippets: CTcpSocket is derived from CAsyncSocket , ...Show All

  • Smart Device Development why cannot get phoneNumber?

    Hi, i run the project: \Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Samples\CPP\Win32\Getphonenumber on my Mobile phone based on smartphone , but it return NULL, it can not get the phone number why Thanks. If the number is stored in the SIM card, the sample code from the SDK will work. There is no easy way of finding the users phone number. We usually send a sms message to our server..... Oystein ...Show All

  • Smart Device Development How to play an audio file (.wav) in WM 5.0 SP?

    Hello. In project Visual Studio 2005, Visual Basic, Windows Mobile 5.0 Smartphone, Device Application, I have added an audio file, for example, drumpad-crash.wav. On this forum, from Mr. Ilya Tumanov (posts 3313) there is the program, which in the given project I have written down in such kind: Public Enum PlaySoundFlags ... End Enum Public Declare Function PlaySound Lib "CoreDll.dll"( _ ByVal szSound As String, ByVal hMod As IntPtr, _ ByVal flags As PlaySoundFlags) As Integer In method Form1_Load, I have written down the next line: PlaySound("..\..\drumpad-crash.wav, IntPtr.Zero, _ PlaySoundFlags.SND_LOOP) At Start of the project, constantly (LOOP) sounds the signal, wich has been no ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. User Friendly?

    Hey is this SDK userfriendly to someone who doesn't know the first thing of Visual C# As in, do you need to learn C# for Visual Game Studio Express Yes, you do need to have a medium skill level in C# to develop with XNA. C# though is a very friendly language so don't be intimidated by that. Find a local college course, check out some books from the library, hit some sites up on line and you'd be ready to tackle XNA in just a short time if you really apply yourself. ...Show All

  • Visual Basic Access db, Basic Report

    I am trying to create a report by add a client report definition file(.rdlc), and my project is connecting to an Access DB. I need Activity table, [Activity Code] table for this report. First I need to filter Activity table by Claim ID, so I will just have activities for a certain Claim. Then I need to use Code table left join the result, I will count how many activities for each code. If the code did not show in the activity table, it will just show blank space. In the Access DB, I created a query - [ActivityByClaim] with a parameter to filter the Activity table, then I created another query to left join the [Activity Code] and [ActivityByClaim]. I got the data I want. But how could I get these data in my Visual Basic 2005 pro ...Show All

  • Windows Search Technologies Would it be possible to use a central index location for our whole network clients?

    Hi developers, we would like to offer Windows desktop search to every employee in order to search our fileserver for useful content. Two problems still to be solved: A Indexing of network drives consumes a lot of bandwidth - would it be possible to create a central index every day and point the clients' desktop search to it B If those clients could use an index created by an administrator of that fileserver (see A), would it be possible to find words but to hide the cached content Background: Sometimes people are looking for information they are not allowed to access at the moment. If they could find some words that lead them to the information needed, they could ask for permission afterwards. But, and that's the reason for que ...Show All

  • SQL Server One to Many Join distilling the Many to two columns.

    I have a one to many relationships each claim we bill for a client has many status. Things like claim sent, claim received by insurance company, claim rejected. There are 80 different statuses all stored in tbl_status and I need to distill into three columns. I currently have the query below that returns only accepted claims and the date claim was released to insurance company. I am struggling with how to have multiple columns released; paid, rejected each column can be represented by one or more of the 80 status in the status table. So I want something like this Select Case status ‘135’ or ‘111’ then Y else N AS Accepted Select Case status ‘123’ or ‘444’ then Y else N AS Released Select Case status ‘435’ o ...Show All

  • SQL Server Access to the property values for my expressions

    I may be looking too hard for this but I can't find a way around it. I have an Expression and in that expression, I want to access a property on the same object (it would be great to get the properties of other objects as well). Example: I have a flat file connection where I defined the name of the flat file in my ConnectionString. I also have a variable that I have it linked to my dtsConfig which points to the proper folder name at run time. How can I create an expression similar to this: @[User::strFolder] + @[Connectionstring] where @[User::strFolder] is my variable and points to the correct folder for the given server the package is running on and @[Conenctionstring] is my made up name to access the VALUE of the Connecti ...Show All

  • Software Development for Windows Vista Distributed Transaction problem

    Hi, I'm having problems getting transactions to work correctly in a state machine workflow. Within the TransactionScope activity I have a Code activity that does a couple of database writes, another Code activity that sends out a notification email, and a SetState activity, which I want to be executed only if the rest of the code executes correctly. The WF runtime and DB are hosted on different servers. After fixing a "The partner transaction manager has disabled its support for remote/network transactions" error by enabling the MSDTC stuff on both machines, I'm now getting a new error: "The transaction has already been implicitly or explicitly committed or aborted (Exception from HRESULT: 0x8004D00E)" A ...Show All

  • SQL Server $25,000 per processor for this?

    What is wrong with Microsoft How could you honestly release this product I agree with everyone else - the new features in SQL Server 2005 are not worth losing the features in 2000! I'm telling my clients to not upgrade. You guys had better release a new version or upgrade fast. mySql is starting to be a real competitor. I can no longer justify your cost. I happen to agree with you about how you describe your disatifaction. Most likely MySQL is your best choice. However, all of my clients have most definitely found that upgrading to SQL 2005 to be well worth the time and expense. I wouldn't consider using MySQL at all since SQL 2005 provides so much functionality that the time and effort to pa ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 2D rotation question

    These are probably pretty Noob questions but this is my first game ever. I'm looking for the XNA way of doing things for the following: 1. I have a sprite that is a simple rectangle. When I spriteBatch.Draw I rotate the sprite say 90 degrees. I have a bounding box that corresponds to the sprite which I also need to rotate so it matches what is drawn on the screen. Origin is (0,0) but I could make it the center of the sprite if that is easier. I'm guessing I have to use Matrix.CreateRotation (x,y,z ) then a Vector2.Transform This is the part I'm kind of confused on. 2. I want my enemy ship to face the player ship. I have the position of both objects. How do I calculate the angle between them 3. Calculate the distance between two points. ...Show All

  • Visual C++ Linker Error when mixing CLR and non-CLR code

    I built a DLL to facilitate reading some data into my .Net app using libraries developed before .Net. So some of the C++ is managed and some is not. After a little bit of fiddling, it all built and tested and (I thought) all was well. Then, when I compiled it in release mode, I got these warnings: warning C4744: 'static unsigned int * tagVARIANT::* ATL::CVarTypeInfo<unsigned int *>::pmField' has different type in 'c:\tmp\TestForLinkWarning\WithoutCLR.cpp' and 'c:\tmp\TestForLinkWarning\WithCLR.cpp': 'int' and 'struct (4 bytes)' warning C4744: 'static unsigned char tagVARIANT::* ATL::CVarTypeInfo<unsigned char>::pmField' has different type in 'c:\tmp\TestForLinkWarning\WithoutCLR.cpp' and 'c:\tmp\TestForLinkWarning\WithCLR ...Show All

  • .NET Development TCP Remoting in Visual Basic 2005

    I am developing an application using VB.NET 2005 with a SQL Server 2005 back end. Multiple users on the LAN will be running the application simultaneously. When one user adds a record to the database, I want their client application to pop up a message on another user's desktop telling them there is a new record. I am trying to do this with TCP Remoting. I have created a class library - compiled as a DLL - that has a public function to receive the message and then raise an event for the hosting application to respond to. AS users log onto the database, I keep a table with their computer name, IP address and listening port. The hosting application sets up a channel and listens on the proper port. When it is time for the application to tell ...Show All

  • Visual Studio Express Editions calender link to database

    I'm trying to create a database of projects. when a project is entered i want the entered to link the database info for that project to the calender date so that when a user clicks on a calender day the projects for that day are shown in a message box. Any ideas Thanks typo! my equals key does not seem to work correctly: dateChosen.Value = My .Forms.Form1.MonthCalendar1.SelectionStart ...Show All

  • Visual C++ C++ declaration of Large number Variable type

    I want a variable to hold a very large numbers (10 bytes, 80) bits and looks like this in decimal 1208925819614629174706176 (25 digits) how do I declare this as a varaible in the begining Plus I am also using pow(,) function and it keeps throwing up an error. James ( james2003g@hotmail.com ) For such large numbers (>64bit) you should look to a big number library such as GNU MP ( http://www.swox.com/gmp/ ). If 64bit is enough, try something along the lines of " __int64 x = 1208925819614LL ". ...Show All

©2008 Software Development Network