windows-applications

C++ UDP RecvFrom, SendTo Different Sockets

家住魔仙堡 提交于 2019-12-11 14:10:10
问题 i wrote a multithreaded UDP server after the following scheme: Scheme: 1 Receiver Thread (Multiple Worker Threads, each has an own Socket, not bindend ,just created Ipv4, UDP,Datagram) Message gets pushed to 1 worker which then proceed's it and then sends an answere with its own socket. Problem: This works perfectly on all my own test programs but for some odd reason it doesnt work with an old software for what i am emulating the server. The software uses async Wsa (overlapped), but i still

Publish Windows form application how change the installation path

扶醉桌前 提交于 2019-12-11 09:28:47
问题 I have built one windows forms application and I published for client installation. While installing the setup file, it should ask the user to select the installation directory path; instead, it's installing in default path as below : C:\Users\Mysys_t\AppData\Local\Apps\2.0\434YBBVC.Z2H\TNYPR09N.1JZ Is there any settings to do this, so that, while installing, user is able to select the installation directory? 回答1: In general, the answer is no. See a related MSDN forums discussion among other

Trying to make changes on two different child forms from main form using Custom Events

萝らか妹 提交于 2019-12-11 08:15:08
问题 I have an application with three forms. I want to be able to update the listview control when a new object is being created in a separate form when all three of them are displayed. MainForm - Contains a List collection instantiated inside, two buttons where CarForm and ListViewCarForm are instantiated. public static List<Cars> listOfCars = new List<Cars>(); public List<Cars> CarList { get { return listOfCars; } set { listOfCars = value; } } private void displayListViewToolStripMenuItem_Click

how to vb.net date save to mysql date with no 0000-00-00

陌路散爱 提交于 2019-12-11 04:07:02
问题 I've been killing brain cell for over 5 hours with this question. how to properly save a date from vb.net to mysql date without getting the 0000-00-00all the time. I have tried multiple suggestions where you format the date value before entering but it gets me the same result ex: Dim departDate As Date Dim d As String = Format(departDate, "05/05/2007") in which i tested and didnt works i still got the 0000-00-00 I've tried: Dim changeFormatDate As Date Dim AddFechaListadoCasas2 as String

sort numbers which has odd-index in vector

会有一股神秘感。 提交于 2019-12-11 02:34:55
问题 I want to sort numbers in vector which has odd-index (index starts from 0 ). For example, if I enter this numbers; 1 6 5 7 3 2 0 , program must returns this: 1 2 5 6 3 7 0 . My code #include <iostream> #include <vector> using namespace std; int main() { int eded, n, _temp; size_t i; cout << "Nece eded daxil edeceksiniz?" << endl << ">>> "; cin >> n; vector<int> v_eded; v_eded.reserve(n); // n qeder bosh yer ayiriram vektor-da cout << "Ededleri daxil edin:" << endl; for (int i = 0; i < n; i++)

Project is not support by this installation {BC8A1FFA-BEE3-4634-8014-F334798102B3}

此生再无相见时 提交于 2019-12-10 18:35:12
问题 I get Project is not support by this installation error when opening a project in VS 2010 Pro Looking at <ProjectTypeGuids> I see guid {BC8A1FFA-BEE3-4634-8014-F334798102B3} Which indicates a Windows Store Apps (Metro Apps) What should I install to run this project type? 回答1: Which indicates a Windows Store Apps (Metro Apps) Correct. Which requires at least VS2012, the first version that supports Store app development. And you need at least Windows 8, required so you can debug your app. 回答2:

Entity framework doesn't save data entries in database

早过忘川 提交于 2019-12-10 14:26:01
问题 At first I should mention that this problem only occurs in windows forms applications and the same program in web mode for example with MVC3 works perfect. Some days ago I wrote a very simple windows form program using Visual studio 2010 ultimate with a SQL Express database. I added the database by choosing Add > New item > Service-Based database and an entity data model based on this database in same way. I used Entity framework for adding some new records to tables. I had done such thing

Call a function/event or pass data to Website(C#) whenever value of variable changed in Web-service

北战南征 提交于 2019-12-10 12:23:07
问题 I have one windows application which is listening to events of a device attached(on USB port) and passing event name to web service( In Real Time ). And I have a website on which I want to perform certain operations according to the event of device(In Real Time) . So I want to pass data or call function on website whenever a new event value is passed from windows application. I tried to use timer on web page which is calling Web-service to get latest value. But the problem is that events are

Google Maps how to get to show only one marker?

故事扮演 提交于 2019-12-10 11:39:48
问题 i've been dealing with this couple of hours and i still cant figure how to do it. my objective is to display only one marker when searching addresses close to each other. below you have the code i use in my html in order to search for addresses, note - i'm developing a windows application that does such, in which case you might find some missing stuff to do actions by clicking buttons since this is done via .NET windows application html code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0

Disable pivot swipe during scrolling on UWP app

瘦欲@ 提交于 2019-12-10 11:15:36
问题 I'm developing Universal Window App on Windows 10 platform and my page looks like this example : Main page contain a pivot control with 4 pivot items (PAGE 1, PAGE 2, ...). PAGE 1 contain a red stackpanel which contain a listview with horizontal scrolling. My problem is, when i want to scroll my red listview horitontaly, my pivot swipe to next page. I want to disable pivot swipe during listview scrolling ( But only during listview scrolling ). I tried to get scrollviewer from listview and to