alex121's Q&A profile
Smart Device Development "GetThumbnailImage" In Pocket PC Developement ?!!
hello .. i want to use the method getthumbnailimage , but the problems is , it is not available in pocket pc developement , so what is the solution for this problem i really need an answer for that .. and for information , i am using VB .. with my best regard ,, Some cameras and/or applications create separate file with ready to use thumbnails, it might be what Resco is using instead of opening actual files. ...Show All
.NET Development How to remove columns from DataView but not from DataSet table
Hi, I use DataSet only one times and then I create DataView many times in the cycle . This DataView is used for generating individual client offers. I want to hide RegionID from DataView, but not from DataSet dv.Table.Columns.Remove("RegionID") ' this doesn`t work Does exists something like ColumnFilter Example: Dim dsNews as DataSet Dim saGenerator As SqlClient.SqlDataAdapter Dim dv as DataView ... saGenerator.Fill(DsNews.Offers) 'only once For Each ClientID In ClientIDs dv = New DataView(DsNews.Offers) dv.RowFilter = "RegionID IN (" & IndividualOffer(ClientID) & ")" 'Each dv converting and saving to *.CSV file Next Notes: IndividualOffer - returns comma separated string ex. "1,5,10 ...Show All
SQL Server BCP host-files must contain at least one column
Hi, I need to export the output of a stored procedure to file. So I am writing a bcp command as 'bcp "exec myproc" queryout "outputfile" -S server -U user -P pwd -n -t, -r "\r\n" '. But I am getting an error 'BCP host-files must contain at least one column'. I am getting this error even if I use a format file. Do u have any idea of what I am missing in it Thanks. Go to Query Analyzer and run this: SET FMTONLY ON exec myproc SET FMTONLY OFF If you get an empty result set with a list of the columns then your stored procedure can actually be used with the BCP utility. Otherwise, a few changes may have to be made to the stored procedure ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to get a Side from a TextureCube
I cannot see anyway of extracting a RenderTarget2D/Texture2D from a RenderTargetCube/TextureCube, except for GetData<> which I really dont want to do. Is your data trapped once you render into a cube format ...Show All
Visual Basic IDE adds decimals
Hi! This odd behavior started the other day and I can't seem to find why this is happening. Let's say I have a "dim myVar as single" When I type : myVar = 0.8F The IDE changes it to : myVar = 0.800000012F Any idea why this happens Thx! Ha ! I just went through the Add-In manager and found out that there was an entry for Rational Rose. I unchecked it, restarted the IDE and there you go ! 0.01 stays 0.01 ! Strange stuff ! Thank you so much for the tip ! ...Show All
SQL Server SQL Query help
i have table "clubinfo" with following fields and data. ClubID FranchiseCode StartDate EndDate ------------------------------------------------------------------ 786 AAAAAA 2005-12-14 15:20:43.340 2006-06-14 14:40:53.270 786 BBBBBB 2006-06-14 14:40:53.270 2006-08-21 14:24:28.060 786 CCCCCC 2006-08-21 14:24:28.060 NULL above three rows describes franchise AAAAAA started on 2005-12-14 and sold on 2006-06-14 to BBBBBB so franchise BBBBBB started on 2006-06-14 and sold on 2006-08-21 to CCCCCC and Endate for CCCCCC is NULL so its a current franchise i wanted to write a sql query that will find franshisecod ...Show All
Visual Studio Strange about Immediate Window?
Hi all, The immediate window is great for debugging. But it only allows simple function evalution. However when I tried to execute the following function: mpfr_add_si(u, Ct, k, GMP_RNDN); CXX0026: Error: bad format string It issued the above error message. What's wrong with it Note that "mpfr_add_si(u, Ct, k, GMP_RNDN);" is a correct function call that compiled and executed successfully. But I don't know why it doesn't work in the immediate window. I execute in the immediate window because I want to execute it again after changing some parameter values. ------------------------------- Another question: is there a way to let the immediate window has the prompt sign, such as ">", or ">&g ...Show All
Visual Studio Express Editions Buttons on Form disabled when using SQL Database
Ok, I've tried de-bugging this and I can't figure out how to rectify my problem. So far I have a simple application with a simple database. (I'm getting back into programming after 20 years.) I have a list box with names of historical figures. When you click on the name a picturebox on the form changes to that person's picture and there is a 'summary' text box which says a little about them. The list box is bound to the database. It works pretty slick actually. The only problem is that once I click on the list box (and the event ListBox1_SelectedIndexChanged takes place) all of the buttons on the form are unresponsive. Apparently the program goes into a loop where it checks to see if the listbox has changed and continues to do ...Show All
Windows Forms Textbox scrolling
When I use textbox.appendtext(buff), buff is successfully appended to the textbox and the textbox automatically scrolls. However, there seems to be a limit... the scrolling stops (as does the data being appended) after a certain amount of data is appended. I have the maxlength set to 0 and have also tried setting it to 1,000,000. I have resorted to: textbox.text+=buff textbox.selectionstart=txtbox..text.length textbox.scrolltocaret() Unfortunately, that scrolls the text all the way to the beginning and then back to the end everytime which causes undesirable flashing. Does anyone know why the appendtext method is limited Hello All. Danny: Hmmm. What version of Visual Studio are you ...Show All
Visual C# Types and Variables
Is it possible to make a Type into a Variable When i select the item i want to navigate with nothing happens Any Ideas p.s I'm Using a tabs system pps this is part of a favourites system. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Port asm to HLSL help please
Could someone who is more intelligent than me please convert the below asm code to HLSL. You will have a place in heaven if you do this ..... :O) Thanks, Dave PixelShader = asm { ps_1_1 tex t0 tex t1 // Specular dp3_sat r1, t1_bx2, v1_bx2 // r1 = (2.0 * (NormalMap - 0.5)) * (2.0 * (vSpecular - 0.5)) dp3_sat r0, t1_bx2, v0_bx2 mul_sat r1, r1, r0 mul_sat r1, r1, r1 mul_sat r1, r1, c2 // Diffuse + Ambient dp3_sat r0, t1, v0_bx2 mad_sat r0, r0, c1, c0 mad_sat r0, r0, t0, r1 }; PixelShaderConstant1[0] = (cAmbient); PixelShaderConstant1[1] = (cDiffuse); PixelShaderConstant1[2] = (cSpecular); The real tricky ...Show All
Software Development for Windows Vista SequenceActivity inheritance
Hi! I have a few custom activities which all inherit from my base class which inherits from sequenceactivity. Is is possible to use the designer in both my base class and the other custom activities Specificaly, I would like to add a ifelse to my base class which should be run after the flows that inherit from this base class have completed. Is this possible Thanks for your help! Thanks for your help, Tom and Elif, I'll look into the custom designers and see what happens. ...Show All
Visual Basic How should I proceed? Advice, please.
I'm wanting to use ASP.NET 1.1 and VB.Net to develop a web based control panel for Windows environments. I will be developing on a Windows XP Pro machine but will be debugging on a Windows 2003 machine. My issue though is that I don't know where to begin. My question is where do I begin Some code samples are preferred, if possible, but I'm just looking for a direction to begin. I've done Google searches and MSDN searches for ASP.NET working with IIS but I didn't get much luck in finding anything. Thanks for your help. -Michael I'm not concerned with logins and registrations per se. I'm wondering which namespaces and methods interact with, modify, delete and create IIS records and the metabase. ...Show All
SQL Server Pre-Generating snapshots not working
Hi I have setup my web synchronisation with very few problems until now. Initially I set the snapshots to generated by the subscriber when they first synchronise, this worked perfectly every time until a bottleneck occured after I reinitialised all the subscribers. When more than one subscriber then initialises the snapshot agent, the snapshot jobs fail because there is already a job running for user distributor_admin. The agent then retries etc, etc.. until all retries have failed. Ultimately only one of the snapshots is successfully created only after all other jobs have failed and run out of retries, it is then left alone to carry out its job. Following this I made the decision to run with pre-generated snapshots instead so that I can s ...Show All
Visual Studio Help disabling Just-In-Debugging
I installed .net 2.0 yesterday and now Just-In-Time Debugging has taken over my apps I work on outside of VS.net. I have followed all steps I have found to disable JIT with no results. So then I uninstalled 2.0 and reverted back to 1.1. Still, the JIT dialogue pops up. The pages I am working on are classic asp pages and the last thing I need is these JIT popups. I have been unable to find any information beyond the checkboxes in VS.net. Could anyone shed some light on this If it matters, I am on XP Pro and run VS.Net 2003. Thanks. Hi Habib, Thanks for your response. Actually, all I am trying to do is stop JIT debugger from intercepting the errors and popping up. This never happened with .NET 1.1, ...Show All
