Raymundo Chapa94595's Q&A profile
Smart Device Development GPSID: GPSOpenDevice does not start GPS
I'm desperately trying to access the built-in GPS of a FujitsuSiemens PocketLoox N560. I can successfully call GPSOpenDevice(NULL, NULL, NULL, 0); and also get a correct handle. But the GPS hardware does not start. The PocketLoox normally indicates active GPS with a blinking orange light, but thats not the case. So far I tried the following things: Accessing the GPS the 'old fashioned' way, using a COM-Port connection. That works. As soon as I open the COM port, blinking light goes on & the GPS (sporadically) sends NMEA messages. Run the C# sample from MSDN - that also works. (But I need a C++ solution for my project What else do I have to do to start the GPS hardware ! Here's the source code I'm using: [...] if (gps_handle == NULL ...Show All
SQL Server SSIS Expression result limit of 4000 bytes
I have a package with an input column that is varchar(8000). I want to strip the first byte off of this column and put it in one result column and the remainder of the field I want to go to a second column. If the input column is an empty string, I want to return NULL. Pulling the first byte off works fine, no issues, however putting the remainder of the input column into an output column is giving me a little trouble. If I use this expression: LEN(FLD1) == 0 NULL(DT_WSTR,1) : SUBSTRING(FLD1, 2, LEN(FLD1) - 1)) I get an error that says my expression evaluates to a string of greater than 4000 bytes. If I do this instead: LEN(FLD1) == 0 NULL(DT_WSTR,1) : RTRIM(SUBSTRING(FLD1, 2, 7999)) The expression passes muster but ...Show All
.NET Development Connection object in a multithreading context
Hi! Do i need a unic connection per thread or can i use a global connection for al DataAdapters That's, i have a multithreading app, each thread connect to the BD and get some rows and i don't know if i must create a new connection per thread or not. Regards. Thread Safety Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe. Open/Close and most other things you'll want to use aren't static so right off the bat you know you're going to have some synchronization issues. there is MARS which allows multiple commands to fire on one connection but that's a different matter. Take Paul's advice on this one and opt for pooling - it works ...Show All
SQL Server Naming Convention
Sorry if this seems trivial, but is it allowed to add hyphens in a physical server name eg: PC-01 Will this cause any errors (when connecting, etc) Thanx. Yes man You can add hyphens in a Physical Server.. Adding SQL Server that Depends on Your CVomputer nAME. Ex: If your Computer Name is PC-01 then you can give SQL Server name as PC-01 But if your Computer name is PC01 then You have to give it PC01. I hope u got your Answer. ...Show All
SQL Server format issue
I've created a new calculate member in (SQL Server Business Intelligence Studio 2005) with the following format string: "#,#0.00". This measure is displayed like this: 22,250.22 Then I created a Measure in the Cube structure menue and used the same format string:"#,#0.00" and this measure is displayed like this:0,66 --> Comma and decimal point are changed in the display of the measures!!!! Can anyone help me with this I just like every measure to use a decimal point for the decimal place or the other way round. But I want every measure to be displayed in the same format! Thanks a lot! OK. What is your regional/national settings for the O/S What thousand separator and what decimal sign are you using with ...Show All
Visual Studio 2008 (Pre-release) Creating graphs using WPF
Hi, I am trying to create graphs using Avalon. Can anyone please help me in searching some useful material for that (creating graphs using WPF build 5456) Thanks in advance, Chandra Sekhar.G You can download Kevin's Graph control here: http://blogs.msdn.com/okoboji/archive/2006/09/20/764019.aspx Sheva ...Show All
Visual Studio Express Editions Prevent Unbound DataGridView From Adding New Rows -- and more
I've been in VB6 for a LONG time and can do most anything I want with it but I'm just getting started in VB 2005 Express. I want to rewrite my gradebook program using an unbound grid control (thinking maybe DataGridView). When I edit a cell in the last row of my grid, the grid wants to add another row on the bottom. How can I stop this ============================================= Another option I have is to use a 3rd party control like FlexCell. Adding extra components in VB6 was easy but how do I get a new control (beyond the ones included in VB2005) like FlexCell in my VB2005 project I figured out that I have to add a reference in the Project Properties tab, but my FlexCell does not appear in the toolbox. I was able to copy a flexgrid ...Show All
Architecture Factory pattern question
i am building a data access layer for some reports. this is a smart client application so the report data may be generated from a database or from a locally stored xml file, etc. i dont want my business layer to worry about how the data is retrieved. all my business layer should say is "get me the data! i don't care how! just get me it!". i thought that i could use a factory pattern - something like this: ReportFactory reportFactory = new ReportFactory(); IReport myReport = reportFactory.GetReport(StorageTypes.Database); DataTable dataTable = myReport.GetData(); ok. but in this scenario the database driven class needs some extra settings such as connection string. whereas the xml based report might need to know oth ...Show All
Silverlight (formerly WPF/E) Image.Source + Permission Denied?
Hello, I am currently working with the December CTP of WPF/E and I am attempting to dynamically set an Image source via some JavaScript. Within my .xaml I have the following snippet: < Image x:Name = " Image1 " Source = " Images/Test.png " Canvas.Left = " 5 " Canvas.Top = "1 0 " /> Within my JavaScript, I have: var image1 = activeXControl.findName( "Image1" ); if (image1 != null ) { alert(image1.source); image1.source = "Images/Test2.png"; } When I run the code, I receive a JavaScript error that says "Permission Denied" however, the SDK document states I should be able to set the Source property. Is this just a CTP ...Show All
Visual C# combobox selectedindex issue
I am initializing ComboBox in constructor of form before form load with following code comboBox.datasource=arrayList comboBox.displayMember=”displayString”; //property I have in collection object comboBox.valueMember=”code”; //Property I have in collection object comboBox.selectedIndex=2; Now when I run application combo box still displaying 0 th index item instead of 2 nd index item. Does any body know about this issue It has to do with the fact that the combobox isn't visible or it's parents. You say, that you are using the statement in the constructor, at that point the controls and windows are nog visible (while debugging you can check that). Setting it visible does no ...Show All
SQL Server Migration Problem of Sql 2000 to SQL 2005
Hi all, We migrated our database from SQL 2000 to SQL 2005. But we faced some problems, according to the requirements of our project we dont want to apply some constraints on some fields of some tables. But when we run the database script of our old database on SQL 2005, it applied many constraints which causing some serious problems in our project. There are about 100+ tables in our database and some one told me that we have to false every constraint manually. Now, my question is that is there any solution of our this problem. Best Regards hi, can you please expand on it applied many constraints which can you post some SQL2000 DDL and how you like it to be in SQL ...Show All
Visual Studio Express Editions about array?
hi there i have a problem regarding array....here's the situition i'm supposing to count a number of area... so i used select command count to count... i want is to compute all the number of area and put the result in textbox...(each result has seperate textbox) txtbox1, txtbox2 and txtbox3... in my code below the dataset overwrite the result instead of to retaining and print the result of area(1) and area(2)... dim conn as new oledb.oledbconnecion("connectionstring") dim area() as string = {"area1","area2","area3"} dim i as integer for i=0 to 2 dim sqlcom as new oledb.oledbcommand("select count(*) from table where area ' " & area(i) " ' ", connectionstring) dim ds as new dataset() 'whe ...Show All
Windows Live Developer Forums "..." displayed instead of URL in PushPin Balloon
I have a map that loads a collection from Windows Live Local. The pushpins in the collection have been edited and the "URL for more info" field has been filled out but in the pop-up balloon on my page, the URL doesn't show up, just three dots like: . . . So, it works, but it's sort of difficult to tell that it is an actual link to click on. Any ideas I'm having the same problem with collection links as you are. I was searching for an answer and found your question. Unfortunately I don't see an answer. Did you find a solution Jeff ...Show All
Visual C# Text extraction -- This one will make you dizzy
Hello, Let's say I have the following variables: string var1 = "5567 87865 4432 54535 6678 4435"; string var2 = "667 332 32 555677 4465 44444444"; string part_of_var1 = "4432 54535"; string xxx = String.Empty; I want to have in xxx: 32 555677! Notice that part_of_var1 contains the third and fourth parts of var1. I want to have 32 555677 in xxx var because it is the third and fourth parts of var2. I hope it's clear! Please help. Hello, Thanks a lot but I'm getting the same input! And a notice saying Unreachable code detected: Here: for ( int i = 0; i < splitPart.Length; ++i) What's wrong ...Show All
Visual Studio 2008 (Pre-release) How to auto-size ListView column headers (without resorting to hacks)?
My objective is to provide auto-sizing column headers in the ListView (with GridView as its View). I want the column headers to always occupy the exact amount of visible width available, so that the "dummy" column header is not displayed. I have not found this task to be simple or straightforward, and am hoping that someone can tell me an easier way to achieve this behavior. The major problem is the fact that the width of a vertical scrollbar must be taken into account. My approach has several facets (some less hacky than others): 1) I created a method named AdjustColumnWidths. It first checks the actual width of the ListView. It then looks for the vertical scrollbar in the items area (by walking the visual tree with VisualTreeHelper ...Show All
