lm089's Q&A profile
Visual C# How to load images effectively ?
Hi guys, In my program I want to view thumbnails.. But when the original image size goes up the program starts to freeze.. In my method I directly load the original image to an Image object and then using the GetThumbnail(....) method resize it and pass to another Image object. But it seems this is not an effective way !! Is there any idea, or trick or something else to increase this performance I am open to any advice.. Best regards I am barely new to this topic.. So can you wite the snippet on how to use Graphics.DrawImage() for getting image files I tried but all DrawImage() method overloads have at least one parameter to specify a location but I will directly put them in a pictureBox... Thanks ...Show All
Visual Studio Express Editions Issue with Option Strict and use of Exponent
New to the World of Programming in general, and new to VB. With thta stated I am having a bit of an issue with VB, since I am new to this I am not sure why the following code has issues: Public Class Form1 Public Sub Form1_Load( ByVal sender As Object , _ ByVal e As System.EventArgs) Handles Me .Load Dim Base, Power As String Dim Result As Integer Base = InputBox( "Enter a Base Number" ) Power = InputBox( "Enter Power Number" ) lblBaseNum.Text = Base lblPowerNum.Text = Power Result = CInt (Base) ^ CInt (Power) lblPowerResult.Text = Result.ToString End Sub End Class Speci ...Show All
Smart Device Development How to play wav through phone line?!
I try to make a answering machin for pocket pc 2003. So I need to play wav through line when incomming call happend. How should I play wave files through lines ! You saw the answer in another thread which states it's not possible due to hardware limitations (restriction most likely mandated by carriers). By the way, the fact you can make answering machine for analog line does not mean you can make one on a cell phone. For example, some person can fly down, but that does not mean the same person can fly up. ...Show All
Visual C++ Problem moving byte array from C# to Managed C++ and back
Hi, I am currently trying to use Managed C++ to create a ,.Net wrapper for some unmanaged C++ code. I'm nearly there, but I have a really annoying issue. My code is as follows: public : void Play(System::Byte buffer[]) { char buffer2[88200]; // Fill the unmanaged buffer pSidplay2->play(buffer2, 88200); //buffer = buffer2*; ...Show All
Microsoft ISV Community Center Forums Dynamic filtering of picklist values CRM 3.0
Hi, I would like to create dynamic filtering of picklist values in CRM 3.0. But I have a problem for to delete dynamically my picklist option.it is really random. // It's here my problem var count = oSepcialisation.Options.length; for ( var i=0; i < count; i++) { try { oSepcialisation.DeleteOption(parseInt(i)); // sometime this function deletes option, sometime doesn't. } catch (ex){ alert(ex);} } ------------------------------------------------------------------------------------------------------------------------- For to reproduce the same condition, you must create 3 attributs of type picklist - new_dev_competency (parent picklist) - new_dev_specialisation (child picklist) - new_dev_orgi ...Show All
Visual C++ LNK2005 (VC8)
Hi! I'm getting following linker error (using /verbose): 2> Searching C:\Programme\Microsoft Visual Studio 8\VC\lib\uuid.lib: 2> Searching C:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbc32.lib: 2> Searching C:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\lib\odbccp32.lib: 2> Searching ..\debug\polling.lib: 2> Found "public: __thiscall polling::Poller_SurfAce112_E1::Poller_SurfAce112_E1(void)" ( 0Poller_SurfAce112_E1@polling@@QAE@XZ ) 2> Referenced in init.lib(SA112Init.obj) 2> Loaded polling.lib(Poller_SurfAce112_E1.obj) 2>polling.lib(Poller_SurfAce112_E1.obj) : error LNK2005: "char const * __cdecl std::_Find(char const *,char const *,int)" ( _Find@std@ ...Show All
Visual Studio Team System TFS puts the files an which path?
TFS puts the documents files an which path i can't find anywhere or it puts the all documents in the Sqlserver database Yes, as Nima says, everything is on the Sql Server, you have the Sps database with all the lists and documents you upload to the Sharepoint site of each project, and also another different database for Source Control files. There is also the database with WorkItems and documents attached to them ...Show All
Visual Studio Team System Visual studio 2005 causes PC to crash after adding form parameters
Using VS2005, captured the actions of searching a product allocation On playback realised that a particular page wasn’t recorded at all. Hence ran Mercury Load runner to record the missing page with the form parameters field that contained a large volume of text. In the Visual Studio web test, Created a new web test and added the chunk of text captured by Mercury Load runner into the form parameters section. The application as well as the PC froze and I had to force boot the PC. Since the script wasn’t playing back the correct information on the browser, today I tried to edit the form parameter field. I accessed the web test \ the HTTP ...Show All
Visual Studio Express Editions help parsing a varing space delimited file
I am having some trouble parsing a file that has varing spaces between the data. I'm using the textfield parser and setting the delimiter as a single space. (" ") Some of the code is below. The problem is the spacing is not a constant and the data ends up in different fields based on the spacing. Is there a way around this Can you set the delimiter to use a varing length amount of space a only one Data Example: 9/28/2006 534 23 12/28/2006 235 25 Code Snip: Dim delimiter As String = " " 'Space seperator Using parser As New TextFieldParser(filename) parser.SetDelimiters(delimiter) parser.TrimWhiteSpace = True 'doesn't do much While Not parser.EndOfData ......yo ...Show All
Visual Basic VBA Programmer
I have been working with VBA for several years, within MS Access. Recently my orgainization bought me Visual Studio 2005 - Standard Edition. I would like to do a simple menu in VB that will replace many desktop shortcuts. These sortcuts would open some access databases, spreadsheets, etc. Just to test it, I created a simple form called frmMain. Below is the code I have written so far. Module RESG Sub main() Call Test() End Sub Sub Test() ' 07.06.2006 'decalre variables Dim strMessage As String Dim strTitle As String 'assign values to the the variables strMessage = "Welcome to the RESG Application Menu." & _ Chr(13) & _ "This is version ...Show All
Visual C++ LNK2019 unresolved ATL::CComStdCallThunkHelper
I am attempting to link an ATL application with VS8 and I get this error: error LNK2019: unresolved external symbol "void __stdcall ATL::CComStdCallThunkHelper(void)" ( CComStdCallThunkHelper@ATL@@YGXXZ) referenced in function "public: void __thiscall ATL::CComStdCallThunk<class CmyErrorBrowser>::Init(void (__stdcall CmyErrorBrowser::*)(void),void *)" ( Init@ $CComStdCallThunk@VCmyErrorBrowser@@@ATL@@QAEXP8CmyErrorBrowser@@AGXXZPAX@Z) This is code moved over from a working VC7 application but the application was built in VC8. Thanks in advance, Richard ...Show All
Visual C# Timer ticker is called after timer is disposed
Hi everyone, I have a System.Threading.Timer that update a progress-bar on a form. The problem is sometimes the update method still is called after the timer and the form are disposed and get following msg: An unhandled exception of type 'System.ObjectDisposedException' occurred in System.Windows.Forms.dll Additional information: Cannot access a disposed object. The related code: private volatile bool WaitFormDisposed = false ; System.Threading. TimerCallback waitDelegate = new System.Threading. TimerCallback ( this .DoWork); this .waitTimer = new System.Threading. Timer (waitDelegate, null , 500, 500); EndWait() is called from outside the form: public void EndWait( object sender, EventArgs ...Show All
Visual Studio Express Editions How to write to the same .txt file using streamwriter by pressing a button?
Hi, how to write to the same .txt file using streamwriter by pressing a button Thanks. ok, on my form i have a timer1 and button1, timer1 will produce a double variable, i would like button1 to write the double variable to the .txt file when i click it. how do i go about doing this step Thanks for the help. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. d3dx10d.dll
I was using the Direct3d9 samples from DirectX and while running i hadn't got any problems, but when i was copying the code from the sample into my own empty project a message occured that i haven't got the d3dx10d.dll. 3Nu, Which Version of Vista and DirectX SDK do you use Bleak-Pear, you are sure that you have used EmptyProject and not EmptyProject10 ...Show All
SQL Server How to concate 2 ore more text fields into one field?
Hello, I hope someone has already done this, but I have a table with a text column- example ColA, now i want to run a query to select the ColA in this table and combine the results of ColA into a ColB in another table. Something like - Note: the codes below doesn't work!! DECLARE @ResultID as int DECLARE @AccID int DECLARE _rows CURSOR FOR SELECT AccID FROM tableA FETCH NEXT FROM _rows INTO @AccID WHILE (@@fetch_status <> -1) BEGIN UPDATE TableB SET Report = Report + (SELECT txtField FROM tableA WHERE AccID = @AccID) WHERE AccID = @AccID FETCH NEXT FROM _rows INTO @AccID END Thanks in advance Check this link that Jared Ko provided earlier today: http://databases.aspfaq.com/general/how ...Show All
