bflemi3's Q&A profile
Smart Device Development How to use database for pocket pc application
Hi I have a need to work on pocket pc application. Scenario: In general user will take database backup from database server to local system. User perform some changes to his local database based on his requirement. Again user connects to database server and click on update, local database should update to server database by informing each record status to the user. ex: record 1 updated / call closed do you want to update Here local database is going to be Pocket pc database and server database is on SQLDatabase. Can any one suggest best way to implement this feature in Windows Pocket pc, c#. I would appreciate your reply. Thanks, 1) Thank you for reply. In my case device sync back to serv ...Show All
Visual Basic Downloaded file (via HTTPWebRequest) not quite right
Hi folks, My current project downloads remote binary data files from a website, and I'm using HTTPWebRequest to do this. For whatever reason, the files I'm getting as a result are almost correct, but not quite. If I download the file manually through IE, it works perfectly. But the file that results from my program running is missing bytes here and there. Oddly enough, nearly all of those bytes are the character "+". I know I'm missing something obvious, but I can't figure out what. Code is as follows: dim wr as httpwebrequest, response as httpwebresponse, instream as binaryreader, done as boolean, _ hr as integer wr = webrequest.create(url) response = wr.getresponse() dim ms as stream = response.getresponsestream() ...Show All
SQL Server Storing & Retrieval Of Encrypted Username and Password Hashes
Can somebody pls guide me on how i can Store & Retrieve Encrypted Username and Password Hashes. I want to know following :- 1. I'm doing all the encryption and calculating password hashes on client side (VB), which i want to store in SQL Database when a new user account is created. I want to know what data types to use in Database. I will prefer not to use strings at all on client side due to secruity issues, i want to do all transfer in bytes -> to and from SQL server. How i can do that 2. How the connections can be made encrypted or more secure when doing these communcations. 3. I want to know if this is the right approach or to use the built in features of SQL Server 2005, main reason for not using that is that not al ...Show All
Visual Studio Express Editions Adding a settings file.
Hello, I am new to visual C++. Years ago I wrote apps in C++, but haven't used it since '95. Just getting started & so far so good but I have hit a snag. I am trying to add application settings. When adding I get the error message "No settings file can be found in the project. Add a settings file & try again" . The only info I can find is how to edit. Nothing that I can find shows how to add a settings file. I would appreciate any info. Thanks Please refer to the following URL within your Visual Studio Express help files: ms-help://MS.VSExpressCC.v80/MS.NETFramework.v20.en/dv_vssoln/html/a233965c-126d-46ab-add4-efb758f576f4.htm ...Show All
Visual Basic Validating Textbox
Hello. A question please. In a version of VB that I don't remember exactly, a textbox had a property called "numeric" which avoids characters. In VB2005 is there something like this Thanks... Simply bind your data property to the .Text property of the MaxkedTextBox. Alternatively, you can programatically set the MaskedTextBox.Text = MyNumber.ToString(). Jim Wooley http://devauthority.com/blogs/jwooley ...Show All
Visual Studio Express Editions Project folder paths
Hi, I've noticed something with Visual C# 2005 Express and wondered if it was normal or if I was doing the process incorrectly. I'm copying a Solution [using File Explorer] and giving it a new name. Then copying'n'pasting that name over the solution & project inside the solution explorer, after opening the new solution. This seems to deal with all files and paths except one, the Project Directory doesn't get changed. The project & solutions all work, however, if I try and change the project folder manually [using File Explorer again] then they stop working. Is there a way to have all the paths renamed successfully by the Visual C# 2005 Express application tia, This doesn't appear t ...Show All
.NET Development Cross-thread operation not valid.
How should I re-enable a Form after being disabled during an external process I have a Form which calls notepad and while notepad is active it disables itself: process.StartInfo.FileName = "notepad.exe" ; process.StartInfo.Arguments = "\"" + file + "\"" ; process.StartInfo.UseShellExecute = false ; process.StartInfo.Verb = "" ; process.Exited += new EventHandler ( process_Exited ); process.Start( ); DisableFormDuringEdit( "Editing..." ); On return, in the event process_Exited event, I tried to enable the form with 'this.enabled=true' but I get the message: Cross-thread operation not valid: Control 'MyForm' accessed from a thread other th ...Show All
Visual Studio Team System Test Manager dropping and duplicating tests from the list
After having some serious problems with Test Manager spontaneously dropping and adding test (for example, tests will suddently show a "Test [TestName] does not exist in the test list" I tried to find anyone else that had a similar problem. After some searching, I came across http://kjellsj.blogspot.com/2006/04/vsmdi-file-weak-spot-of-vsts-test.html which describes the problem we're having to a tee: In particular, Kjell-Sverre's describes the problem that they [...] from time to time get "The test 'TestName' does not exist in the test list. It may have been moved, renamed or deleted". Yesterday, the 'Test Manager' showed all tests duplicated in the test lists. Today, another developer saw just some chinese characters when openin ...Show All
Visual C++ Help Using Owner Drarwn Menu
Hi All, I have created an owner drawn menu item and done required drawing in the DrawItem function. The drawing code works as I expected bu the problems is a box appearing outside the menu. how can I remove it please see the following pictured to see the output. http://static.flickr.com/98/248788817_5aca6ca4f1_o.jpg Ayman, yes I solved it using sub-classing and hooking I used, Paul DiLascia's subclasswnd for hooking. and the SkinMenu project of codeproject helped me alot. Another problem happened after doing all these the transperancy of the window has been lost :( ...Show All
Visual Studio VsIdeTestHost.msi missing in last SDK?
I can't seem to find the VsIdeTestHost.msi file that is referred in the VsHostIntegration sample unit tests. I can't find the wix scripts that would enabled to rebuild it either. Anybody has an idea I also have problem with VsIdeTestHost. I have VS SDK Sep RTM, and I just installed Dec CTP. But when I want to run my old project, there was pop up window says something like: "The Add-in VsIdeTestHost failed to load or caused and exception. etc etc....". It asked if I want to remove this Add-in, but I did not remove it. The error message is the system cannot find the file specified with error number: 80070002. Does anyone have any idea about this Regards, ...Show All
SQL Server Can't seem to get the newly created entry's identity field :(
Hi there, I have a stored procedure that executes a transaction which updates/inserts into a table on a remote server and should then use that new entry's autogenerated primary key to update another table. I try to store that key into a variable called @ NewlyCreatedPastelDClinkNumber but to no avail I have used the @@Identity approach and now try to manually get that key to from other information but still no go..My thinking is: since i am using transactions, maybe the entry cant be found until the transaction has been committed...but surely it should find it after the commit statement Here is my code: I have marked the interesting bit with blue for simplicity. ALTER procedure [dbo].[inv_SynchronizeClientsWithPastel] as BEGIN set ANSI_N ...Show All
Windows Forms Adding a custom icon to a form, next to minimize, maximize and close in top right
Hi My design calls for a custom 'pin' icon to be added to forms next to the existing minimize, maximize and close in the top right corner. Any suggestions as to how this could be done Jim Windows doesn't let you do this. You'll have to simulate your own window caption on a caption-less window frame, just like the VS2005 IDE does it. Lots of work... ...Show All
Smart Device Development how to detect if phone is "turned off"
Hi folks, Some of our customers have reported a strange intermittent problem with thier WM5.0 devices. Apparently our application loses it's GPRS connection, and when the user tries to make a call, they are informed that the phone is "turned off" and they are asked if they want to turn it on. Once they do that, our app reconnects and starts sending data again. The app works fine after a device starts up, this happens after the device has been working for a while, it's almost like the device has gone into flight-mode. 1. Any ideas why this might be happening 2. Is there a way we can programatically (vb.net 2005, .netCF 2.0, WM5.0) check to for this condition and turn the phone back on Our app will try to send data ev ...Show All
SQL Server Concatenate Rows into Columns
I have a table 2 columns (Object and Weight) with data like below: Object Weight(lb) table 5 Chair 6 Computer 3 Computer 5 TV 20 TV 15 Radio 10 Computer 10 Question: I would like to create a new table with one column that would join the above two columns like below Object table 5 Chair 6 Computer 3, 5, 10 TV 20, 15 Radio 10 Thanks for your help in advance. --We can use CTE in SQL Server 2005. The recursive function will take care of the number of records for the same object in your table. With MyCTE ( Object , Weight , Weights , myNum ) AS ( SELECT a . Object , CONVERT ( varchar ( 50 ), MIN ( a . Weight )) as col1 , CONVERT ( varchar ( 50 ),( a . Weight )) as Weights , 1 as myNum ...Show All
SQL Server scheduling sql sp needing to access mapped network drives
How to make network drives accessible to a stored procedure Currently the sp works only if I open a session on the server and execute the sp with SQL Server Management Studio on the server. If you want to use ressources within the network you will need appropiate permissions either for the service account SQL Server Service is running with or the service account SQL Server Agent is running with (if you do that within a scheduled job). An alternative would be to setup a proxy account for the service [1] [1] http://www.databasejournal.com/features/mssql/article.php/1580041 In SQL Server 2005 proxy accounts can also be configured through the Configuration interface which you will find in the program c ...Show All
