zigy42's Q&A profile
Smart Device Development Picture transmission from Pocket PC to remote server
Hi all, I need to transmit a picture I capture by my pocket pc camera to a folder exsists in a remote server. The picture often 40 KB size. Witch is the proper way to do this quickly. Best regards... It depends on your connection. If you have reliable LAN, you can access file share on a server directly using UNC paths. For internet you probably should use web server and HTTP post. ...Show All
Visual C++ Walking the call stack as fast as possible
Hello ! I have dedicated some time to developing a memory allocator that replaces the default crt allocator. Things are almost finished, but recently i've added a leak trace that saves the call stack for every memory allocation. (The stack is saved in the process memory, so there's no interprocess communication overhead.) That adds a very important overhead to the allocator and i was wondering if there is any efficient way of getting the call stack. At the moment i'm using StackWalk64 and the profiler i'm using (CodeAnalist) reports that 99+% of the time is spent in dbghelp.dll, ntoskrnl.dll and msvcrxx.dll (strangely, the functions used fro ...Show All
Visual Basic TEST DLL PROBLEM
Made Changes to dll and did build. Registered dll with C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\regasm.exe TEST.dll /tlb Why wil regsvr32 not work with this DLL Try to test… create a whole new project solution. Select Project | References | Browse. Select TEST from COM tab. ERROR - test.tbl was exported from a .NET assembly and cannot be added as a reference. What am I doing wrong TEST.DLL <ComClass(True)> <ComVisible(True)> Public Class TEST_MODULE Public Function Process(ByVal Session As Object) As Boolean 'Dim posSession As QSRules.SessionClass ...Show All
Visual C# Search DataSet
I've got an app that populates textboxes based on a DataSet, like so: txtModel.Text = ds.Tables[ "dtModels" ].Rows[iCurrentRow][ "Model" ].ToString(); txtDirectory.Text = ds.Tables[ "dtModels" ].Rows[iCurrentRow][ "Directory" ].ToString(); txtName.Text = ds.Tables[ "dtModels" ].Rows[iCurrentRow][ "Name" ].ToString(); etc.... And I can navigate through this DataSet by changing the row index, no big deal. But I'd like to have a search box that the user can put a string in and the dataset would only return those records LIKE the string. In other words, if I enter 'C130', then the DataSet would set it's filter for ...Show All
Smart Device Development application does not appear in 'Remove Programs'
with VS 2003 I used to build the CAB files manually. Now I'm using VS 2005 and I'm trying to build a CAB file with it's built in process. I've managed to build one and installed my application. But I'm not entirely sure what i need to do in order to create a shortcut to it in under 'Programs' and dont know how to make it appear in 'Remove Programs'. Thanks. No, that should not matter either. Unless installation completely failed (because of security restrictions or for any other reason) and application was never installed. Naturally, application which is not installed won’t appear in “Remove programs ...Show All
SQL Server Datareader Query Timeout
Hello, I am running a query via a ado.net data flow source. It works great for a small number of rows, but if I try to execute a long running query it times out with a communication error. I have looked through the doc and every property sheet that I can find in my package, but I can't find anywhere that a timeout is specified. Any help on finding this would be appriciated. The query is running against DB2 on z/os and I know it is timing out on the server side because I can watch the query run on z/os and it continues to run after SSIS gets the error. Thanks! Harry I am having a similar issue to this that I cannot find the answer ...Show All
Visual Studio Express Editions auto populate date and time columns in access database
ok this is my first app ever and im trying to enter some data into an access database. i can pass the data i want into the database but cant seem to get the date and time columns to populate with the current time and date. cheers in hope lol You can use the datatables new row event to set values in the new row. http://www.vb-tips.com/default.aspx ID=6b05b025-2ace-4ad0-9eae-a95385888e22 ...Show All
SQL Server Unexpected function sequence error when using SQL_CO_FFO on stored procedure
Hi all, In my ODBC program, I try to execute a stored procedure returning a unique result set, by using a fast forward cursor (SQL_CO_FFO), but I get a "Function sequence error" when fetching the first row. FFC forces the ODBC driver to use sp_cursoropen, which is fine for me because I need multiple active SQL statements. I appears that the content of the stored procedure matters. When the procedure implements only a simple SELECT statement, it works fine. But when adding a simple SET statement or even a IF block, I get the sequence error! This is really not expected. I get the same problem with SQL Server 2000 and 2005 ...Show All
SQL Server Enumerating Role Permissions with SMO
Hi, I am attempting to enumerate role permissions using SMO. I can enumerate the permissions on a atbel, view, or store procedure no problem. When I try to enumerate the permissions that a role has I get the following error: 'Operation not supported on SQL Server 2000' Can anyone help me in sorting this out. I had the permissions enumerated in DMO but I just can't seem to get it to work in SMO. Thanks, James Hi, I am connecting to SQL2K. I have not problem getting the permissions on a table, view, stored procedure, or function. Its only when I try to get the permissions for a role or user ...Show All
SQL Server How to get SQL Server 2000 data files location?
Hi. Is any way to get SQL Server 2000 data files location using TSQL Thank you for your answer. I have already considered this variant, but using a little other request: select top 1 filename from model..sysfiles. This is not very simple approach, becase then one must parse the path name and remove file name part at the end. Well, if it is the only way to get result, I'll use it. ...Show All
SQL Server not able to connect to the local database with (local) as server name
I am facing a problem in connecting to the local database with server name as (local). I have installed SQL Server 2005 in my machine. When I try to connect to the SQL server with the server name as SUNILKUMAR I am able to connect but when I try to connect to the same server with the server name as (local) I am not able to connect. SUNILKUMAR is my machine name and SQL server is running locally. if anyone can help me what is the problem in this case it is highly appriciated. What's the error string you get What are the protocols enabled on the server Also, make sure no alias with name (local) is confi ...Show All
Visual Studio Express Editions Random Numbers again!!!
Hi there, i think i have gotten into a bit of a fix... here is the problem: i have used the random obj to generate random numbers between 1 to 90. some times when the application runs, it picks a number twice. for example an output would be 2,8,34,2,67.... is it possible to make sure all numbers picked are only selected once that is if i request for 10 ranadom numbers, each 10 digits would be unique... this is driving me nutts!! thanks 4 ur help Slow. Hi Slow, One way would be to keep a list of previously generated numbers, whenever a number is generated check the list, if th ...Show All
SQL Server Backup to FTP site
I want to backup my database to an ftp site. How can I do that with SQL Server 2005 Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple opacity effect
How Simple as that. Im trying managed directx 9. I dont want transparent (i still want to see the bitmap). I havent found any samples or documentation on this subject. Any help is much appreciated, or a point in the right direction. Oh, im trying to do this with sprites. You may need to tinker with your presentation parameters. I wanted to do the very thing you are attempting to do now; and after a few struggles, figured out that my main problem was that I wasn't using alpha colors in the Draw2D function of the Sprite object. However, apparently the color values aren't the problem with your source code. I also noti ...Show All
Smart Device Development Problem in Emulator
Hi i am new to developing application in windows mobile 5.0. i just developed a simple application,initially i was able to deploy it on the emulator but suddenly i lost the original state of the windows Ce phone pc emulator and now i am getting a wide black screen instead.can anyone please guide me as to how to get back the originalsize and appearance of the windows Ce phone pc emulator.i am also getting the "Deployment or registration failed with error 0x8007048f.the device is not connected" and sometimes i get "VMDI not connected"already in use. Kindly help me out.. Thanks in advance wm_al "VM ...Show All
