[Solved] How can I save a variable in my function to use it again?

[ad_1] Onk_r has the right answer: static variables within the body ({}) of a function ‘stick around’. Specifically, the expression which initializes the value of a static variable within a function body is executed only once, so the next time you call that function whatever value it had last will remain. However, that won’t solve … Read more

[Solved] Name ”enumerator’ does not exist in current context [closed]

[ad_1] button1_Click doesn’t know about enumerator because it exists only in IncarcaCategorii you need to make it a class field using System; using System.Data; using System.Windows.Forms; using System.Linq; namespace ProiectBDD { public partial class AdaugaIntrebari : UserControl { private string connstring; private IEnumerator<DataRow> _enumerator; public string Connstring { get { return connstring; } set { … Read more

[Solved] how can we solve this type? [closed]

[ad_1] Question is absolutely not clair… like this? private static Dictionary<String, PointPairList> s_PointPairLists = new Dictionary<String, PointPairList>(); private static void BuildPointPairLists(Int32 limit) { for (Int32 i = 2; i < limit; ++i) { if ((tabl[i].x != null) && (tabl[i].y != null)) { Double[] x = { 0, tabl[i].y }; Double[] y = { tabl[i].x, 0 … Read more

[Solved] Low-level read file [closed]

[ad_1] The function you’re looking for is called “read”. You have to pass it a buffer you’ve already allocated previously, however. Something like this ought to work: if (fd) { char buffer[1024]; int n = read(fd, buffer, 1024); /* … */ } after that call, n will contain the number of bytes read from the … Read more

[Solved] How would I grab image data from display output of amd gpus? [closed]

[ad_1] AMD AMF SDK can get you this: Is there a functionality to capture screen directly and encode at GPU buffer memory? amf\public\src\components\DisplayCapture already has code which is basically wrapping DD API into AMF component. If my memory serves me right DVR sample shows how to use it (source code definitely has traces that it … Read more

[Solved] How to find any date format in a string [closed]

[ad_1] /\d{1,2}\/\d{1,2}\/(?:\d{2}){1,2} \d{1,2}:\d{2}(:?:\d{2})?/gm For a few pieces: \d{1,2} matches 1 or two digits. (?:\d{2}){1,2} matches a group of two digits once or twice. (therefore, 2 or 4 digits) (?:\d{2}:)? allows the seconds to be optional 2 [ad_2] solved How to find any date format in a string [closed]

[Solved] c# windows form in form as part of the ihm

[ad_1] Im’ really sorry guys, yeah i just had to make my borderstyle none. Really sorry to made you loose your time, and thanks for the answer Reports rep = new Reports(); rep.FormBorderStyle = FormBorderStyle.None; rep.MdiParent = this; rep.Show(); [ad_2] solved c# windows form in form as part of the ihm

[Solved] How to make custom validation for all datatype in c# using extension methods [closed]

[ad_1] I think you do not know about variables in c#. Please see more about variables in this link, because all types inherit from System.Object enter link description here For example, this code maybe solve your problem, but I don’t understand for what purpose… public static class Test { public static bool UserCheck(this object a) … Read more

[Solved] Specifying a path for a user defined file name [closed]

[ad_1] By default, the file gets created where ever the project files are for visual studio. because of $(ProjectDir) specified in Working Directory setting. consider: right-click on your project -> Properties -> configuration properties -> Debugging -> Working Directory always make sure you are changing/viewing the active configuration and active platform setting in that window … Read more