Raphael Pina's Q&A profile
Visual C++ Experts please - Function problem
Is there a function/header for executing a line of code from a string You might ask what this is for, it is for a dll wrapper. So i need to execute custom code which changes at runtime. Any ideas Thanks for any help provided. Regards, Christian Sciberras wrote: Is there a function/header for executing a line of code from a string Unless you include a compiler in your application, which will be both slow, expensive and generally troublesome: no, you cannot execute C++ code from a string. What you can do, is introduce Python bindings (or bindings to another script language such as LUA), and execute that from strings. Boost ( www.boost.org ) has a Python library, and for LUA you can look to http://www.r ...Show All
Visual Studio Team System Javascript actions in coded web test not working correctly
After reading the white paper of Josh ‘ Web Test Authoring and Debugging technique’ , I figured out that I could mimic the JavaScript action of a ‘ add to cart’ button for our product. Hence I coded my web test and included the following piece of code in the appropriate section request9Body.FormPostParameters.Add( "btnFinish" , "Add to Cart" ); There was already another ‘formpostparameters.add’ just prior to that in the same request. request9Body.FormPostParameters.Add( "Body" , "&Anthem_UpdatePage=true&__EVENTTARGET=btnFinish&__EVENTARGUMENT=&__VIEWSTATE=%2Fw" + However, this did not make any difference to the ...Show All
SQL Server Sum function: only on specific rows
Hi, I have a table where I want to use the sum function, but only on the rows with a positive value. Is there any way to do this Heidi, I Suppose you want somthing like this: select customer, sum(amount) from orders where amount >= 0 group by customer ...Show All
Windows Live Developer Forums Windows messenger dial and wait symbol
Hello, maby someone can tell me is it possible to use some character in phone number wihic i'm dialing to I use Windows Messenger 5.1 on Win XP, my messenger client is connected to SIP server and if i choose "Actions-> Make phone call" and enter local (the same city where server runs) number and dial to that number everything works fine. But if i want to call to other city, SIP phone line goes through another station, so i need use code, and after code when i get dial tone, i enter the number. the problem is that i don't know and can't find anywhere symbol which emulate wait symbol. I've tried 123#12345 and 123w12345 with no success, messenger dial 123 goes to status connected and i hear continiously beep and everything fro ...Show All
Software Development for Windows Vista Examples by Tom Lake
Thanks for your examples. I have question about SharedPersistenceAndTracking example when you create new order Order number:5555 the Workflow InstanceId: c036af82-f48a-4931-acef-9307812a1177 Workflow Status: WaitingForOrderState When click to create order button the workflow Status will Changed to OrderOpenStatus. When close the application and run it again in the Default.aspx page the first instanceid equal : c036af82-f48a-4931-acef-9307812a1177 When you click to the instance the order.aspx will present and shown this information Order number:12345 The workflow instanceid: : c036af82-f48a-4931-acef-9307812a1177 Workflow Status: OrderOpenState My que ...Show All
.NET Development How to create AppDomains when assemblies reside in IsolatedStorage?
The project entails a server that hosts the running of user code in sub AppDomains. A specific directory in a non-roaming IsolatedStorageFile contains the assemblies the user code references. For file system security reasons, it is desirable to be able to point the new sub AppDomain's base directory to a sub directory of the isolated storage file. Is there someway of doing this - without copying files to the actual FS For example, by refering to the actual ISF directly via:<SYSTEMDRIVE>\Documents and Settings\<user>\Local Settings\Application Data\<ISFName> How would the ISF's file name be determined in this case More generally, a furture requirement for the server is to allow cabinets or zip archives to be us ...Show All
Visual Basic Non-WinForm wrapper for VB6 OCX
A while back I successfully built a VB.NET user control as a wrapper for a VB6 OCX. I now have to do the same thing but for a non Win Forms application i.e. a ASP.NET app or a web service. Is it possible to build a .NET assembly that can be called from a formless application (another assembly/ASP.NET/web service) that wraps the VB6 OCX The control itself has no graphical presence only a handful of properties, method and events. Any advice appreciated. (Originally posted in the VB General section yesterday) I've searched all over the net looking for a solution to this - nowhere to be found. I must be stubborn, because I didn't really need to keep trying, but eventually I figured it out - for ...Show All
Windows Forms Forcing a DataGridView to update values
I've got a datagridview (winforms) controls with a collection bound to it. Anyway, I've got a checkbox column in the grid. I need its value to be updated to the object as soon when the column value is changed. However, it only gets updated when I move focus off of that cell. Is there anyway to change the way it behaves or call a method to force the grid to update values back to the bound collection For instance, on a regular databinding to like a textbox I can change the DataSourceUpdateMode to OnPropertyChange. Is there something similar to this for the entire DataGridView I'm having the same issue but with a combo box. Cellcontentclick event won't be fired when clicking the combo. What ...Show All
Smart Device Development ActiveSync
The activesync version I'm using is 3.8, and i'm developing in Visual Studio .NET 2003 in C#. I'm also using the mscomm.ocx for communication to the serial ports. I currently have an application open when I cradle my PocketPC. That works fine. But the point of that Application is to read data. I expect it to be just random characters, I just need to know that it is in fact communicating with the PPC. Any ideas on how I would go about this. I currently have the following as code (InitComPort is a subrouting I created that is initiated in the constructor) private void InitComPort() { com.CommPort = 1; com.RThreshold = 1; com.Settings = "9600,n,8,1"; com.DTREnable = true ; com.InputMode = MSCommLib.InputModeConstan ...Show All
Visual C# VB translate to C#...
I got sentence by VB like below: Page_Header(Me, False, progname) would like to translate this to C# I tried this sentence page.header(this.false,progname) and I got error message "page.header is a attribute can 't not difine as a method" can you help me to correct this sentence please thank you Here is some language specifications references: C# , VB and some comparisons about them: http://www.harding.edu/USER/fmccown/WWW/vbnet_csharp_comparison.html http://www.codeproject.com/dotnet/vbnet_c__difference.asp http://en.wikipedia.org/wiki/Comparison_of_C_sharp_and_Visual_Basic_.NET Have a nice day, guy :-) ...Show All
Windows Forms Font is Combobox text?
Hey, How would I make it so that the font in a richtextbox is the selected font in a combobox(combobox2.text) I tryed thisrichtextbox.TextBox.Font = (toolStripComboBox2.Text); but I got a error with the toolstripcombobox2.text part...: Cannot implicitly convert type 'string' to 'System.Drawing.Font' Thanks :) Font is an attribute of the text and not associated with object Text that holds the alphanumerics. Try this instead thisrichtextbox.SelectedFont = comboBox1.Font; ...Show All
.NET Development DataSet WriteXML datetime
Hi, I want to export the dataset tables to xml file. In the tables I've datetime fields. Export work great but I don't want to have time zone in the xml file. current: <TABLE> <DATE>2006-09-14T00:00:00-04:00</DATE> </TABLE> What I want: <TABLE> <DATE>2006-09-14</DATE> </TABLE> I've tried a lot of things but never found the good answer. Thx very much This type exist However, the database is oracle and my field is DATE type. In .Net the schema is taken from the database and when I export it to xml, I have xs:datetime. Dont' know what to doo :| ...Show All
Visual Basic Vb6 to Connect With SQLEXPRESS
Hi I am trying to connect to sqlexpress from vb6 and getting error: a database with the same name exists,or specified file cannot be opened, or it is located on UNC share. Using following code Dim cn As ADODB.Connection Set cn = New Connection cn.ConnectionString = "Provider=SQLNCLI.1;Integrated Security=SSPI;" & _ "Persist Security Info=False;" & _ "AttachDBFileName=" & App.Path & "\northwnd.mdf;Data Source=.\sqlexpress" cn.Open If anyone please help Zaabdullah Thank you for help. I used this string it worked. cn.ConnectionString = "Provider=SQLNCLI.1;Integrated Security=SSPI;AttachDBFileName=" & ...Show All
Visual Studio Express Editions DialogResult and Vb warning
Warning 1 Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. D:\data\IeI\gp\AppCom\IeFinMgr\FormIeFinMgr.vb 742 29 IeFinMgr code: Dim od As New OpenDialog() Dim myDialogResult As DialogResult = od.ShowDialog(Me) If myDialogResult = DialogResult.OK Then ShowUrl(od.PathOrUrl) End If however the above did work. How should I code so I don't get the warning on DialogResult.OK You are getting this warning because the form has a DialogResult property. Of course, you are using the enumerated type name here, not the property. The compiler ought to be smart enough to pick the type name, not the propert ...Show All
Windows Forms Insert a Resourse to textbox?
Hey, how do you insert a resourse(image in resourses) to a rich textbox I tryed doing this: thisrichtextbox.TextBox.SelectedText = Notebook_Pro.Properties. Resources .theimage; but I got an error about it not being able to convert bitmap to string...so I tryed the code I had gotten from a question I asked when I was progames25 about inserting a image form a file into the textbox...: string strImagePath = openFileDialog1.FileName; Image img = Image .FromFile(strImagePath); Clipboard .SetDataObject(img); DataFormats . Format df = DataFormats .GetFormat( DataFormats .Bitmap); //Check this line, im not sure if (thisrichtextbox.TextBox.CanPaste(df)) { thisrichtextbox.TextBox.Paste(df); } and ...Show All
